junit.extensions.awt
Class AWTTestCase

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--junit.extensions.awt.AWTTestCase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
FontChooserTest, MyCodeTest, ScriptEditorTest

public class AWTTestCase
extends junit.framework.TestCase

Simple wrapper for a test script to run under JUnit.


Constructor Summary
AWTTestCase(java.lang.String filename)
          Construct a test case with the given name.
 
Method Summary
protected  void runTest()
          Override the default TestCase runTest method to invoke the script.
static junit.framework.Test suite()
          Return a suite of tests found in the current directory, recursing to subdirectories.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, name, run, run, runBare, 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
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AWTTestCase

public AWTTestCase(java.lang.String filename)
Construct a test case with the given name. It is essential that the name be passed to super() unmodified, or the JUnit GUI will consider it a different test.
Method Detail

runTest

protected void runTest()
                throws java.lang.Throwable
Override the default TestCase runTest method to invoke the script.
Overrides:
runTest in class junit.framework.TestCase

suite

public static junit.framework.Test suite()
Return a suite of tests found in the current directory, recursing to subdirectories.