public class InclassMethodTest
extends java.lang.Object
TestMethod
) in a
JUnit test.Constructor and Description |
---|
InclassMethodTest(java.lang.reflect.Method method,
java.lang.String testFileRoot)
Encapsulate the given method (annotated with
TestMethod ) in a
JUnit test. |
Modifier and Type | Method and Description |
---|---|
void |
test()
Invokes the method annotated with
TestMethod and compares the
result with an expected value. |
java.lang.String |
toString() |
public InclassMethodTest(java.lang.reflect.Method method, java.lang.String testFileRoot)
TestMethod
) in a
JUnit test. When executed, the test may access files stored at
testFileRoot
.method
- testFileRoot
- public void test() throws java.lang.Throwable
TestMethod
and compares the
result with an expected value. Comparison is done using
Assert.assertEquals(String, String, String)
java.lang.Throwable
public java.lang.String toString()
toString
in class java.lang.Object