public class ExportImageJUnitTest
extends java.lang.Object
Constructor and Description |
---|
ExportImageJUnitTest() |
Modifier and Type | Method and Description |
---|---|
protected void |
_exportImageTest(java.lang.String modelFileName)
Test the Export Image facility by saving images and reading
them back in.
|
protected void |
_sleep()
Sleep the current thread, which is usually not the Swing Event
Dispatch Thread.
|
static void |
main(java.lang.String[] args)
Test the ExportImage facility.
|
void |
runModulation()
Test the layout facility by reading in a models, stripping
out the graphical elements, laying out the models, comparing
the new results with the known good results and then doing
undo and redo.
|
public static void main(java.lang.String[] args)
To run, use:
java -classpath \ $PTII:$PTII/lib/junit-4.8.2.jar: \ ptolemy.vergil.basic.test.junit.ExportImageJUnitTest
args
- Not used.public void runModulation() throws java.lang.Throwable
java.lang.Throwable
- If there is a problem reading or exporting
the image.protected void _exportImageTest(java.lang.String modelFileName) throws java.lang.Throwable
This is the main entry point for Export Image tests.
The caller of this method need notbe in the Swing Event Thread.
modelFileName
- The file name of the test model.java.lang.Throwable
- If the file name cannot be read or laid out.protected void _sleep()