Class ExportToWebJUnitTest
- java.lang.Object
-
- ptolemy.vergil.basic.export.html.test.junit.ExportToWebJUnitTest
-
public class ExportToWebJUnitTest extends java.lang.Object
Test out export to web facility.- Since:
- Ptolemy II 10.0
- Version:
- $Id$
- Author:
- Christopher Brooks
- Pt.AcceptedRating:
- Red (cxh)
- Pt.ProposedRating:
- Red (cxh)
-
-
Constructor Summary
Constructors Constructor Description ExportToWebJUnitTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
_exportToWebTest(java.lang.String modelFileName, java.lang.String directoryName)
Test the ExportToWeb facility by reading in a model, and exporting it.void
exportButterfly()
Test the export the Butterfly model.static void
main(java.lang.String[] args)
Test the ExportToWeb facility.
-
-
-
Method Detail
-
main
public static void main(java.lang.String[] args)
Test the ExportToWeb facility.To run, use:
java -classpath \ $PTII:${PTII}/lib/junit-4.8.2.jar:${PTII}/lib/JUnitParams-0.3.0.jar \ ptolemy.vergil.basic.export.html.test.junit.ExportToWebJUnitTest
- Parameters:
args
- Not used.
-
exportButterfly
public void exportButterfly() throws java.lang.Exception
Test the export the Butterfly model.- Throws:
java.lang.Exception
- If there is a problem reading or laying out a model.
-
_exportToWebTest
protected void _exportToWebTest(java.lang.String modelFileName, java.lang.String directoryName) throws java.lang.Exception
Test the ExportToWeb facility by reading in a model, and exporting it.This is the main entry point for ExportToWeb tests.
The caller of this method need notbe in the Swing Event Thread.
- Parameters:
modelFileName
- The file name of the test model.directoryName
- The name of the directory.- Throws:
java.lang.Exception
- If the file name cannot be read or exported
-
-