Package org.processmining.contexts.test
Class InclassMethodTest
- java.lang.Object
-
- org.processmining.contexts.test.InclassMethodTest
-
public class InclassMethodTest extends java.lang.Object
Encapsulate a method (annotated withTestMethod
) in a JUnit test.- Author:
- Dirk Fahland
-
-
Constructor Summary
Constructors Constructor Description InclassMethodTest(java.lang.reflect.Method method, java.lang.String testFileRoot)
Encapsulate the given method (annotated withTestMethod
) in a JUnit test.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
test()
Invokes the method annotated withTestMethod
and compares the result with an expected value.java.lang.String
toString()
-
-
-
Constructor Detail
-
InclassMethodTest
public InclassMethodTest(java.lang.reflect.Method method, java.lang.String testFileRoot)
Encapsulate the given method (annotated withTestMethod
) in a JUnit test. When executed, the test may access files stored attestFileRoot
.- Parameters:
method
-testFileRoot
-
-
-
Method Detail
-
test
public void test() throws java.lang.Throwable
Invokes the method annotated withTestMethod
and compares the result with an expected value. Comparison is done usingAssert.assertEquals(String, String, String)
- Throws:
java.lang.Throwable
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-