java.lang.Object
junit.framework.Assert
junit.framework.TestCase
junit.extensions.abbot.ComponentTestFixture
- All Implemented Interfaces:
- junit.framework.Test
- public class ComponentTestFixture
- extends junit.framework.TestCase
Simple wrapper for testing components under JUnit. Derived classes
provide a component which is placed within a frame and displayed prior to
each test.
|
Field Summary |
private boolean |
opened
|
| Fields inherited from class junit.framework.TestCase |
|
| Methods inherited from class junit.framework.Assert |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
opened
private volatile boolean opened
ComponentTestFixture
public ComponentTestFixture(java.lang.String name)
- Construct a test case with the given name.
showFrame
protected java.awt.Frame showFrame(java.awt.Component comp)
- This method should be invoked to display the component under test.
The frame's size will be its preferred size.
showFrame
protected java.awt.Frame showFrame(java.awt.Component comp,
java.awt.Dimension size)
- This method should be invoked to display the component under test,
when a specific size of frame is desired.
getFinder
protected abbot.ComponentFinder getFinder()
- Obtain a component finder to look up components.
runTest
protected void runTest()
throws java.lang.Throwable
- Override the default TestCase runTest method to ensure components are
cleaned up after the test.