diva.sketch.test
Class JSketchSuite
java.lang.Object
diva.util.jester.TestSuite
diva.sketch.test.JSketchSuite
public class JSketchSuite
- extends TestSuite
Suite of tests for the sketch demo.
- Load a sketch, save it,
and compare the files to make sure they are identical. Tests
saving, loading, and the integrity of the sketch model.
- Record a set of mouse events. Instantiate a sketch window,
but don't show it. Send the mouse events to the window. Check
that the model contains the correct stroke.
- Version:
- $Revision: 1.4 $
- Author:
- Michael Shilman (michaels@eecs.berkeley.edu)
Method Summary |
void |
runSuite()
Test load & save, and test sketch, save, and load. |
void |
testDraw()
Instantiate a JSketch, read mouse events from a
file, play the events into the window, and check
to make sure that the model has the correct number
of strokes. |
void |
testLoadSave()
|
void |
testSaveLoad()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JSketchSuite
public JSketchSuite(TestHarness harness)
runSuite
public void runSuite()
- Test load & save, and test sketch, save, and load.
- Specified by:
runSuite
in class TestSuite
testLoadSave
public void testLoadSave()
testDraw
public void testDraw()
- Instantiate a JSketch, read mouse events from a
file, play the events into the window, and check
to make sure that the model has the correct number
of strokes.
testSaveLoad
public void testSaveLoad()
Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.