Package org.processmining.contexts.test
Class InclassMethodTest
java.lang.Object
org.processmining.contexts.test.InclassMethodTest
Encapsulate a method (annotated with
TestMethod
) in a
JUnit test.- Author:
- Dirk Fahland
-
Constructor Summary
ConstructorDescriptionInclassMethodTest
(Method method, String testFileRoot) Encapsulate the given method (annotated withTestMethod
) in a JUnit test. -
Method Summary
Modifier and TypeMethodDescriptionvoid
test()
Invokes the method annotated withTestMethod
and compares the result with an expected value.toString()
-
Constructor Details
-
InclassMethodTest
Encapsulate the given method (annotated withTestMethod
) in a JUnit test. When executed, the test may access files stored attestFileRoot
.- Parameters:
method
-testFileRoot
-
-
-
Method Details
-
test
Invokes the method annotated withTestMethod
and compares the result with an expected value. Comparison is done usingAssert.assertEquals(String, String, String)
- Throws:
Throwable
-
toString
-