Package org.processmining.contexts.test
Class InclassMethodTest
- java.lang.Object
-
- org.processmining.contexts.test.InclassMethodTest
-
public class InclassMethodTest extends java.lang.ObjectEncapsulate 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 voidtest()Invokes the method annotated withTestMethodand compares the result with an expected value.java.lang.StringtoString()
-
-
-
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.ThrowableInvokes the method annotated withTestMethodand 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:
toStringin classjava.lang.Object
-
-