Class InclassMethodTest

java.lang.Object
org.processmining.contexts.test.InclassMethodTest

public class InclassMethodTest extends Object
Encapsulate a method (annotated with TestMethod) in a JUnit test.
Author:
Dirk Fahland
  • Constructor Details

    • InclassMethodTest

      public InclassMethodTest(Method method, String testFileRoot)
      Encapsulate the given method (annotated with TestMethod) in a JUnit test. When executed, the test may access files stored at testFileRoot.
      Parameters:
      method -
      testFileRoot -
  • Method Details

    • test

      public void test() throws Throwable
      Invokes the method annotated with TestMethod and compares the result with an expected value. Comparison is done using Assert.assertEquals(String, String, String)
      Throws:
      Throwable
    • toString

      public String toString()
      Overrides:
      toString in class Object