abstractpublic class BaseDocumentUnitTestCase extends BaseTestCase(Code)
Vladimir Voskresensky copied this class to prevent dependency on editor tests
Support for creation of unit tests working with document.
author: Miloslav Metelka
Create editor kit instance to be returned
by
BaseDocumentUnitTestCase.getEditorKit() .
The returned editor kit should return
BaseDocument instances
from its
javax.swing.text.EditorKit.createDefaultDocument() .
final protected synchronized Caret getCaret()(Code)
Return the caret instance that can be used for testing.
The caret listens on document changes and its initial
position is set to
BaseDocumentUnitTestCase.getLoadCaretOffset() .
caret instance.
Get the kit that should be used
when creating the BaseDocument
instance.
The editor kit instance is created in
BaseDocumentUnitTestCase.createEditorKit() .
editor kit instance.
Get the text that the document obtained by
BaseDocumentUnitTestCase.getDocument() would be loaded with.
text to be loaded into the document or null if nothingshould be loaded.