| javax.swing.BasicSwingTestCase javax.swing.SwingWaitTestCase
All known Subclasses: javax.swing.text.JTextComponent_IMLocationTest,
SwingWaitTestCase | abstract public class SwingWaitTestCase extends BasicSwingTestCase (Code) | | JUnit test case class which calls setUp , tearDown
and tests (testXXX methods) on event-dispatch thread, and
waits (stops) after calling setUp until component
is displayed on screen.
|
component | protected Component component(Code) | | Component to wait on. This component should be drawn correctly for
the test to run correctly.
|
exception | protected Throwable exception(Code) | | Exception thrown during test execution if any.
|
SwingWaitTestCase | public SwingWaitTestCase()(Code) | | Default constructor.
|
SwingWaitTestCase | public SwingWaitTestCase(String name)(Code) | | Parametricized constructor.
Parameters: name - test name (actually test method name to be run) |
init | public void init()(Code) | | This method will be called after setUp and waiting and before
test running.
|
isRealized | public static void isRealized(Component c)(Code) | | Method delays current thread while Component isn't realized.
TODO:Replace Component method invokes, as soon as new awtfunction for
Component is written (to check, that component is realized by single
method).
|
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)
|
|
|