|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--junit.framework.Assert | +--junit.framework.TestCase | +--junit.extensions.awt.AWTTestCase | +--example.MyTestCase
Simple test instance of AWTTestCase. The standard test fixture is also set up to only launch the application once, but still ensure that the application under test runs if only a single test case is run. The launch method defines the application under test.
Constructor Summary | |
MyTestCase(java.lang.String name)
Construct a test case with the given name. |
Method Summary | |
java.io.File |
getScriptDirectory()
Indicate where to find our test scripts. |
java.lang.String |
getScriptPrefix()
Indicate the prefix to use for scripts corresponding to this test case class. |
void |
launch()
Launch the GUI under test. |
static void |
main(java.lang.String[] args)
|
static junit.framework.Test |
suite()
Provide a default test suite for this test case. |
boolean |
useSingleGUIInstance()
Indicate whether to launch a single GUI instance for all instances of this test case. |
Methods inherited from class junit.extensions.awt.AWTTestCase |
addStepListener, disposeWindows, getFileFilter, removeStepListener, runBare, runTest, setLaunchEnabled, setManager, setTerminateEnabled, setTerminateOnFailure, shouldAccept, shouldIgnore, terminate |
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, name, run, run, setName, setUp, tearDown, toString |
Methods inherited from class junit.framework.Assert |
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public MyTestCase(java.lang.String name)
Method Detail |
public java.lang.String getScriptPrefix()
getScriptPrefix
in class AWTTestCase
public java.io.File getScriptDirectory()
getScriptDirectory
in class AWTTestCase
public boolean useSingleGUIInstance()
useSingleGUIInstance
in class AWTTestCase
public void launch()
launch
in class AWTTestCase
public static junit.framework.Test suite()
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |