| |
|
| javax.swing.BasicSwingTestCase javax.swing.text.AbstractDocument_ContentTest
All known Subclasses: javax.swing.text.GapContentTest, javax.swing.text.StringContentTest,
AbstractDocument_ContentTest | public class AbstractDocument_ContentTest extends BasicSwingTestCase (Code) | | This class is to test methods of AbstractDocument.Content inteface.
|
Field Summary | |
Content | obj This is a shared object under which will be run. | Segment | text Shared segment of text which is used in testGetCharsXXX methods. |
obj | Content obj(Code) | | This is a shared object under which will be run. It must be initialized
to contain a test string:
"This is a test string."
0123456789012345678901
|
text | Segment text(Code) | | Shared segment of text which is used in testGetCharsXXX methods.
|
AbstractDocument_ContentTest | public AbstractDocument_ContentTest()(Code) | | |
AbstractDocument_ContentTest | public AbstractDocument_ContentTest(String name)(Code) | | |
testCreatePositionInsertAfter | public void testCreatePositionInsertAfter() throws BadLocationException(Code) | | Tests that Position IS NOT changed, after an insertion has occured
after this Position.
|
testCreatePositionInsertBefore | public void testCreatePositionInsertBefore() throws BadLocationException(Code) | | Tests that Position IS NOT changed, after an insertion has occured
before this Position.
|
testCreatePositionInvalid | public void testCreatePositionInvalid()(Code) | | |
testCreatePositionRemoveAfter | public void testCreatePositionRemoveAfter() throws BadLocationException(Code) | | Tests that Position IS NOT changed, after an insertion has occured
after this Position.
|
testCreatePositionRemoveBefore | public void testCreatePositionRemoveBefore() throws BadLocationException(Code) | | Tests that Position IS changed, after an insertion has occured
before this Position.
|
testGetCharsInvalidLength | public void testGetCharsInvalidLength()(Code) | | |
testGetCharsInvalidPosition | public void testGetCharsInvalidPosition()(Code) | | |
testGetCharsNegativeLength | public void testGetCharsNegativeLength()(Code) | | |
testGetStringInvalidLength | public void testGetStringInvalidLength()(Code) | | |
testGetStringInvalidPosition | public void testGetStringInvalidPosition()(Code) | | |
testGetStringNegativeLength | public void testGetStringNegativeLength()(Code) | | |
testInsertStringInvalid | public void testInsertStringInvalid()(Code) | | |
testLength | public void testLength()(Code) | | |
testRemoveBack | public void testRemoveBack() throws BadLocationException(Code) | | Removes a portion of content in the middle. shiftGapStartDown method
should be called.
|
testRemoveBackEnd | public void testRemoveBackEnd() throws BadLocationException(Code) | | Removes a portion of content at its end. shiftGapStartDown method
should be called.
|
testRemoveImplicit | public void testRemoveImplicit()(Code) | | Tries to remove implicit character at the end of the content.
|
testRemoveInvalidLength | public void testRemoveInvalidLength()(Code) | | |
testRemoveInvalidPosition | public void testRemoveInvalidPosition()(Code) | | |
Methods inherited from javax.swing.BasicSwingTestCase | public static void assertEquals(Object[] expected, Object[] actual)(Code)(Java Doc) protected Graphics createTestGraphics()(Code)(Java Doc) protected Component findComponent(Container root, Class> findClass, boolean exactClassMatch)(Code)(Java Doc) protected FontMetrics getFontMetrics(Font fnt)(Code)(Java Doc) protected FontMetrics getFontMetrics(Font fnt, int charWidth)(Code)(Java Doc) protected FontMetrics getFontMetrics(Font fnt, int charWidth, int charHeight)(Code)(Java Doc) protected EventListener getListener(EventListener[] listeners, Class> listenerClass)(Code)(Java Doc) protected boolean hasListener(EventListener[] listeners, Class> listenerClass)(Code)(Java Doc) public static boolean isHarmony()(Code)(Java Doc) protected boolean isSystemWindow(Frame f)(Code)(Java Doc) protected void rethrow(Throwable exception) throws Throwable(Code)(Java Doc) public void runBare() throws Throwable(Code)(Java Doc) protected Throwable runBareImpl() throws Throwable(Code)(Java Doc) protected void runBareSuper() throws Throwable(Code)(Java Doc) public static Object serializeObject(Object objectToWrite) throws IOException, ClassNotFoundException(Code)(Java Doc) public void setIgnoreNotImplemented(boolean b)(Code)(Java Doc) protected void setUp() throws Exception(Code)(Java Doc) protected void tearDown() throws Exception(Code)(Java Doc) protected void testExceptionalCase(ExceptionalCase ec)(Code)(Java Doc) protected void traverseComponentTree(Component root, TraverseAction action)(Code)(Java Doc) protected boolean waitForFocus(Component c) throws Exception(Code)(Java Doc) protected void waitForIdle() throws Exception(Code)(Java Doc)
|
|
|
|