BlockJUnit4ClassRunner
in place of JUnit4ClassRunner
.@Deprecated
public class TestMethod
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.reflect.Method |
method
Deprecated.
|
private TestClass |
testClass
Deprecated.
|
Constructor and Description |
---|
TestMethod(java.lang.reflect.Method method,
TestClass testClass)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
(package private) boolean |
expectsException()
Deprecated.
|
(package private) java.util.List<java.lang.reflect.Method> |
getAfters()
Deprecated.
|
(package private) java.util.List<java.lang.reflect.Method> |
getBefores()
Deprecated.
|
protected java.lang.Class<? extends java.lang.Throwable> |
getExpectedException()
Deprecated.
|
long |
getTimeout()
Deprecated.
|
void |
invoke(java.lang.Object test)
Deprecated.
|
boolean |
isIgnored()
Deprecated.
|
(package private) boolean |
isUnexpected(java.lang.Throwable exception)
Deprecated.
|
private final java.lang.reflect.Method method
private TestClass testClass
public TestMethod(java.lang.reflect.Method method, TestClass testClass)
public boolean isIgnored()
public long getTimeout()
protected java.lang.Class<? extends java.lang.Throwable> getExpectedException()
boolean isUnexpected(java.lang.Throwable exception)
boolean expectsException()
java.util.List<java.lang.reflect.Method> getBefores()
java.util.List<java.lang.reflect.Method> getAfters()
public void invoke(java.lang.Object test) throws java.lang.IllegalArgumentException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
java.lang.IllegalArgumentException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException