Package diva.canvas.test
Class JCanvasTest
- java.lang.Object
-
- diva.util.jester.TestSuite
-
- diva.canvas.test.JCanvasTest
-
public class JCanvasTest extends TestSuite
A test suite for JCanvas. This is fairly basic, and is really just a few simple confidence tests.- Version:
- $Id$
- Author:
- John Reekie
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JCanvasTest.CanvasFactory
The canvas factory provides methods for default creation of canvas objects.static class
JCanvasTest.FramedCanvas
FramedCanvas is a test case that accepts a JCanvas and places it into a pane.
-
Constructor Summary
Constructors Constructor Description JCanvasTest(TestHarness harness, JCanvasTest.CanvasFactory factory)
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
main(java.lang.String[] argv)
Create a default test harness and a canvas factory and run all tests on it.void
runSuite()
runSuite()void
testConstructor1()
Test the nullary constructorvoid
testConstructor2()
Test the constructor that takes a pane-
Methods inherited from class diva.util.jester.TestSuite
getFactory, getTestHarness, run, runAll, runTestCase, setFactory, setTestHarness
-
-
-
-
Constructor Detail
-
JCanvasTest
public JCanvasTest(TestHarness harness, JCanvasTest.CanvasFactory factory)
Constructor
-
-
Method Detail
-
testConstructor1
public void testConstructor1()
Test the nullary constructor
-
testConstructor2
public void testConstructor2()
Test the constructor that takes a pane
-
main
public static void main(java.lang.String[] argv)
Create a default test harness and a canvas factory and run all tests on it.
-
-