| |
|
| javax.swing.BasicSwingTestCase javax.swing.text.AbstractDocument_BranchElementTest
All known Subclasses: javax.swing.text.html.HTMLDocument_BlockElementTest,
AbstractDocument_BranchElementTest | public class AbstractDocument_BranchElementTest extends BasicSwingTestCase (Code) | | Tests AbstractDocument.BranchElement class.
|
Inner Class :class DummyElement implements Element | |
bidi | protected BranchElement bidi(Code) | | |
par | protected BranchElement par(Code) | | |
testBranchElement | public void testBranchElement()(Code) | | |
testChildren | public void testChildren()(Code) | | |
testGetAllowsChildren | public void testGetAllowsChildren()(Code) | | |
testGetElement | public void testGetElement()(Code) | | |
testGetElementCount | public void testGetElementCount()(Code) | | |
testGetElementIndex01 | public void testGetElementIndex01()(Code) | | Test getElementIndex with default set of elements.
|
testGetElementIndex02 | public void testGetElementIndex02()(Code) | | Test getElementIndex behavior if some elements are zero-length,
i.e. start and end offsets are the same.
|
testGetElementIndex03 | public void testGetElementIndex03()(Code) | | Tests getElementIndex behavior when there are no children in the
BranchElement.
|
testGetElementIndex04 | public void testGetElementIndex04() throws BadLocationException(Code) | | Tests getElementIndex behavior when there are "gaps" between children.
The document has default length.
|
testGetElementIndex05 | public void testGetElementIndex05() throws BadLocationException(Code) | | Tests getElementIndex behavior when there are "gaps" between children.
The document has zero length.
|
testGetElementIndex06 | public void testGetElementIndex06()(Code) | | Tests getElementIndex behavior when there are no child elements, but
getStartOffset and getEndOffset are overridden
to prevent
NullPointerException .
|
testGetElementIndex07 | public void testGetElementIndex07() throws BadLocationException(Code) | | Tests getElementIndex behavior when this BranchElement doesn't span
all the document, it has child elements.
|
testGetEndOffset | public void testGetEndOffset()(Code) | | |
testGetEndOffsetNoChildren | public void testGetEndOffsetNoChildren()(Code) | | |
testGetName | public void testGetName()(Code) | | |
testGetStartOffset | public void testGetStartOffset()(Code) | | |
testGetStartOffsetNoChildren | public void testGetStartOffsetNoChildren()(Code) | | |
testIsLeaf | public void testIsLeaf()(Code) | | |
testPositionToElement | public void testPositionToElement()(Code) | | |
testPositionToElement_PartialBranch | public void testPositionToElement_PartialBranch() throws BadLocationException(Code) | | Tests positionToElement where the BranchElement
tested doesn't span over the whole document.
|
testReplace01 | public void testReplace01()(Code) | | Generic checks.
|
testReplace02 | public void testReplace02()(Code) | | Copy checks.
|
testReplace03 | public void testReplace03() throws Exception(Code) | | Replace with null.
|
testReplace04 | public void testReplace04()(Code) | | |
testToString | public void testToString()(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)
|
|
|
|