Package 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.
-
-
Constructor Summary
Constructors Constructor Description RegionTestCase(java.lang.String str)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
check()
Report on the results of running the test.void
init()
Initialize the test case.-
Methods inherited from class diva.util.jester.TestCase
assertEquals, assertExpr, fail, getExecutionTime, getName, run, startTimer, stopTimer
-
-
-
-
Method Detail
-
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.
-
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 classTestCase
- Throws:
TestFailedException
-
-