public class PojoTestSet extends java.lang.Object implements SurefireTestSet
Modifier and Type | Field and Description |
---|---|
private static java.lang.Object[] |
EMPTY_OBJECT_ARRAY |
private java.lang.reflect.Method |
setUpMethod |
private java.lang.reflect.Method |
tearDownMethod |
private static java.lang.String |
TEST_METHOD_PREFIX |
private java.lang.Class<?> |
testClass |
private java.util.List<java.lang.reflect.Method> |
testMethods |
private java.lang.Object |
testObject |
Constructor and Description |
---|
PojoTestSet(java.lang.Class<?> testClass) |
Modifier and Type | Method and Description |
---|---|
private void |
discoverTestMethods() |
void |
execute(RunListener reportManager,
java.lang.ClassLoader loader) |
private boolean |
executeTestMethod(java.lang.reflect.Method method,
java.lang.Object[] args,
RunListener reportManager) |
private void |
executeTestMethods(RunListener reportManager) |
java.lang.String |
getName() |
private java.lang.Class<?> |
getTestClass() |
private java.lang.String |
getTestName(java.lang.String testMethodName) |
private static boolean |
isValidTestMethod(java.lang.reflect.Method m) |
private void |
setUpFixture() |
private void |
tearDownFixture() |
private static final java.lang.String TEST_METHOD_PREFIX
private static final java.lang.Object[] EMPTY_OBJECT_ARRAY
private final java.lang.Object testObject
private final java.lang.Class<?> testClass
private java.util.List<java.lang.reflect.Method> testMethods
private java.lang.reflect.Method setUpMethod
private java.lang.reflect.Method tearDownMethod
public PojoTestSet(java.lang.Class<?> testClass) throws TestSetFailedException
TestSetFailedException
public void execute(RunListener reportManager, java.lang.ClassLoader loader)
execute
in interface SurefireTestSet
private void executeTestMethods(RunListener reportManager)
private boolean executeTestMethod(java.lang.reflect.Method method, java.lang.Object[] args, RunListener reportManager)
private java.lang.String getTestName(java.lang.String testMethodName)
private void setUpFixture() throws java.lang.Throwable
java.lang.Throwable
private void tearDownFixture() throws java.lang.Throwable
java.lang.Throwable
private void discoverTestMethods()
private static boolean isValidTestMethod(java.lang.reflect.Method m)
public java.lang.String getName()
getName
in interface SurefireTestSet
private java.lang.Class<?> getTestClass()