diva.canvas.test
Class FigureTest.RegionTestCase
java.lang.Object
diva.util.jester.TestCase
diva.canvas.test.FigureTest.RegionTestCase
- Enclosing class:
- FigureTest
public abstract class FigureTest.RegionTestCase
- extends TestCase
Region testing test case. This test case can be used for
methods that take a region argument, to verify that they don't
change that region. The run method must be overridden.
Field Summary |
(package private) java.awt.geom.Rectangle2D |
copy
|
(package private) Figure |
figure
|
(package private) java.awt.geom.Rectangle2D |
region
|
Method Summary |
void |
check()
Report on the results of running the test. |
void |
init()
Initialize the test case. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
figure
Figure figure
region
java.awt.geom.Rectangle2D region
copy
java.awt.geom.Rectangle2D copy
FigureTest.RegionTestCase
public FigureTest.RegionTestCase(java.lang.String str)
init
public void init()
throws java.lang.Exception
- Description copied from class:
TestCase
- Initialize the test case. This is a concrete method that does
nothing. It is not requires that this method be overridden, but
any test that is more than a few lines should do so to
distinguish between the initialization and execution phases
of the test. It also allows local classes to be created
that override init() to create an object or set of objects
that will be used in multiple tests.
- Overrides:
init
in class TestCase
- Throws:
java.lang.Exception
check
public void check()
throws TestFailedException
- Description copied from class:
TestCase
- Report on the results of running the test. This method should
perform a series of checks on the data produced by the run()
method, and for each, call fail() if the produced data does
not conform to the expected result.
- Specified by:
check
in class TestCase
- Throws:
TestFailedException