Package org.processmining.contexts.test
Class PromTest
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- org.processmining.contexts.test.PromTest
-
- All Implemented Interfaces:
junit.framework.Test
public class PromTest extends junit.framework.TestCaseThe base class for unit tests in ProM. A class the extends this class is a JUnit test suite that gets automatically enriched with two kinds of tests. 1) Inclass Method Tests: these are tests generated from all methods in the plugin code that are annotated withTestMethodand the corresponding attributes. Tests are generated from all classes stored in "./bin". 2) Automated test scripts: these are tests that run a sequence of scripted tests that are stored in a specified location:defaultTestScriptDir. The tests may access files/compare results to files stored indefaultTestDir.- Author:
- Dirk Fahland
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringdefaultClassFileLocationsDefault location of class files that contain methods which are annotated withTestMethodand which shall be run in the JUnit test.static java.lang.StringdefaultTestDirDefault location of test files that is used if the system propertytest.testFileRootis not set.static java.lang.StringdefaultTestScriptDirDefault location of test script files insidedefaultTestDirthat is used if the system propertytest.testScriptRootis not set.
-
Constructor Summary
Constructors Constructor Description PromTest()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Collection<? extends java.lang.Object>inlineTests()static java.util.Collection<? extends java.lang.Object>testScripts()-
Methods inherited from class junit.framework.TestCase
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
-
-
-
-
Field Detail
-
defaultTestDir
public static final java.lang.String defaultTestDir
Default location of test files that is used if the system propertytest.testFileRootis not set. Overwrite this value if necessary. Default value "./tests/testfiles".- See Also:
- Constant Field Values
-
defaultTestScriptDir
public static final java.lang.String defaultTestScriptDir
Default location of test script files insidedefaultTestDirthat is used if the system propertytest.testScriptRootis not set. By default, this location is "autoscripts". Overwrite this value if necessary.- See Also:
- Constant Field Values
-
defaultClassFileLocations
public static final java.lang.String defaultClassFileLocations
Default location of class files that contain methods which are annotated withTestMethodand which shall be run in the JUnit test. Overwrite this value if necessary. Default value "./tests/testfiles".- See Also:
- Constant Field Values
-
-