public class ScriptFixture
extends junit.framework.TestCase
| Constructor and Description |
|---|
ScriptFixture(String filename)
Construct a test case with the given name, which must be the
filename of the script to run.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args)
Assumes each argument is an Abbot script.
|
protected void |
runTest()
Override the default TestCase runTest method to invoke the script.
|
void |
setAWTFixtureHelper(AWTFixtureHelper helper)
Provide a non default AWTFixtureHelper, the most common
usercase of this is when you want to base in a custom TestHierarchy
for example when you don't want to ingore existing components.
|
protected void |
setUp()
Saves the current UI state for restoration when the
fixture (if any) is terminated.
|
protected void |
tearDown() |
countTestCases, createResult, getName, run, run, runBare, setName, toStringassertEquals, 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, failNotEquals, failNotSame, failSame, formatpublic ScriptFixture(String filename)
public void setAWTFixtureHelper(AWTFixtureHelper helper)
setAWTFixtureHelper(new AWTFixtureHelper(new TestHierarchy(false)));protected void setUp()
throws Exception
TestHierarchy for the duration of the test.setUp in class junit.framework.TestCaseExceptionprotected void tearDown()
throws Exception
tearDown in class junit.framework.TestCaseExceptionprotected void runTest()
throws Throwable
Script is created and a default StepRunner is used
to run it.runTest in class junit.framework.TestCaseThrowableTestCase.runTest()public static void main(String[] args)
Abbot is hosted on