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.TestCase
The 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 with
TestMethod
and 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 in defaultTestDir
.- Author:
- Dirk Fahland
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Default location of class files that contain methods which are annotated withTestMethod
and which shall be run in the JUnit test.static final String
Default location of test files that is used if the system propertytest.testFileRoot
is not set.static final String
Default location of test script files insidedefaultTestDir
that is used if the system propertytest.testScriptRoot
is not set. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Collection<? extends Object>
static Collection<? extends Object>
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 Details
-
defaultTestDir
Default location of test files that is used if the system propertytest.testFileRoot
is not set. Overwrite this value if necessary. Default value "./tests/testfiles".- See Also:
-
defaultTestScriptDir
Default location of test script files insidedefaultTestDir
that is used if the system propertytest.testScriptRoot
is not set. By default, this location is "autoscripts". Overwrite this value if necessary.- See Also:
-
defaultClassFileLocations
Default location of class files that contain methods which are annotated withTestMethod
and which shall be run in the JUnit test. Overwrite this value if necessary. Default value "./tests/testfiles".- See Also:
-
-
Constructor Details
-
PromTest
public PromTest()
-
-
Method Details
-
testScripts
-
inlineTests
-