public class ExportModelJUnitTestBatch extends ExportModelJUnitTest
To run the first batch of models using the baseclass:
cd $PTII ./configure ant test.single -Dtest.name=ptolemy.vergil.basic.export.test.junit.ExportModelJUnitTestBatch -Djunit.formatter=plainor
cd $PTII/ptolemy/vergil/basic/export/test/junit/; export CLASSPATH=${PTII}:${PTII}/lib/junit-4.8.2.jar:${PTII}/lib/JUnitParams-0.3.0.jar${PTII}:${PTII}/lib/junit-4.8.2.jar:${PTII}/lib/JUnitParams-0.3.0.jar; export JAVAFLAGS="-Dptolemy.ptII.exportHTML.linkToJNLP=true -Dptolemy.ptII.exportHTML.usePtWebsite=true" $PTII/bin/ptinvoke org.junit.runner.JUnitCore ptolemy.vergil.basic.export.test.junit.ExportModelJUnitTestBatch
This test uses JUnitParams from , which is released under Apache License 2.0.
Constructor and Description |
---|
ExportModelJUnitTestBatch() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object[] |
demos()
Return a two dimensional array of arrays of strings that name the
first 51 models to be exported.
|
java.lang.Object[] |
demos(int start,
int end)
Return a two dimensional array of strings that name the models to
to be exported.
|
void |
RunExportModel(java.lang.String modelPath)
Export a model.
|
_getCount, _incrementCount
public ExportModelJUnitTestBatch()
public void RunExportModel(java.lang.String modelPath) throws java.lang.Throwable
RunExportModel
in class ExportModelJUnitTest
modelPath
- The model to be exported. The code is exported to
the directory contained by the model.java.lang.Throwable
- If there is a problem reading or exporting the model.public java.lang.Object[] demos() throws java.io.IOException
demos
in class ExportModelJUnitTest
java.io.IOException
- If there is a problem accessing the directory.public java.lang.Object[] demos(int start, int end) throws java.io.IOException
start
- The 0-based index of the first model in
$PTII/ptolemy/configs/doc/models.txtend
- The index of the last model.java.io.IOException
- If there is a problem accessing the directory.