junit.extensions.abbot
Class ScriptFixture
java.lang.Object
|
+--junit.framework.Assert
|
+--junit.framework.TestCase
|
+--junit.extensions.abbot.ComponentTestFixture
|
+--junit.extensions.abbot.ScriptFixture
- All Implemented Interfaces:
- Test
- Direct Known Subclasses:
- FontChooserTest, MyCodeTest, ScriptTestCase
- public class ScriptFixture
- extends ComponentTestFixture
Simple wrapper for a test script to run under JUnit.
Constructor Summary |
ScriptFixture(String filename)
Construct a test case with the given name, which must be the
filename of the script to run. |
Method Summary |
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. |
Methods inherited from class junit.extensions.abbot.ComponentTestFixture |
getFinder, getResolver, getRobot, getWindowTracker, hideWindow, installPopup, runBare, showFrame, showFrame, showPopup, showWindow, showWindow, showWindow |
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 |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ScriptFixture
public ScriptFixture(String filename)
- Construct a test case with the given name, which must be the
filename of the script to run.
runTest
protected void runTest()
throws Throwable
- Override the default TestCase runTest method to invoke the script.
- Overrides:
runTest
in class TestCase
main
public static void main(String[] args)
- Assumes each argument is an Abbot script. Runs each one.
Copyright © 2002-2003 Timothy Wall. All Rights Reserved.
Abbot is hosted on