Package org.apache.maven.surefire.junit
Class PojoTestSetExecutor
- java.lang.Object
-
- org.apache.maven.surefire.junit.PojoTestSetExecutor
-
- All Implemented Interfaces:
SurefireTestSetExecutor
public class PojoTestSetExecutor extends java.lang.Object implements SurefireTestSetExecutor
Executes a JUnit3 test class
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
PojoTestSetExecutor.DiscoveredTestMethods
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.Object[]
EMPTY_OBJECT_ARRAY
private JUnit3Reporter
reporter
private static java.lang.String
SETUP_METHOD_NAME
private static java.lang.String
TEARDOWN_METHOD_NAME
private static java.lang.String
TEST_METHOD_PREFIX
-
Constructor Summary
Constructors Constructor Description PojoTestSetExecutor(JUnit3Reporter reporter)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private PojoTestSetExecutor.DiscoveredTestMethods
discoverTestMethods(java.lang.Class<?> testClass)
void
execute(java.lang.Class<?> testClass, java.lang.ClassLoader loader)
private boolean
executeTestMethod(java.lang.Class<?> testClass, java.lang.reflect.Method method, long testRunId, PojoTestSetExecutor.DiscoveredTestMethods methods)
private java.lang.String
getTestName(java.lang.String testClassName, java.lang.String testMethodName)
private static boolean
isNoArgsInstanceMethod(java.lang.reflect.Method m)
private static boolean
isValidTestMethod(java.lang.reflect.Method m)
private void
setUpFixture(java.lang.Object testObject, PojoTestSetExecutor.DiscoveredTestMethods methods)
private void
tearDownFixture(java.lang.Object testObject, PojoTestSetExecutor.DiscoveredTestMethods methods)
-
-
-
Field Detail
-
TEST_METHOD_PREFIX
private static final java.lang.String TEST_METHOD_PREFIX
- See Also:
- Constant Field Values
-
SETUP_METHOD_NAME
private static final java.lang.String SETUP_METHOD_NAME
- See Also:
- Constant Field Values
-
TEARDOWN_METHOD_NAME
private static final java.lang.String TEARDOWN_METHOD_NAME
- See Also:
- Constant Field Values
-
EMPTY_OBJECT_ARRAY
private static final java.lang.Object[] EMPTY_OBJECT_ARRAY
-
reporter
private final JUnit3Reporter reporter
-
-
Constructor Detail
-
PojoTestSetExecutor
public PojoTestSetExecutor(JUnit3Reporter reporter)
-
-
Method Detail
-
execute
public void execute(java.lang.Class<?> testClass, java.lang.ClassLoader loader) throws TestSetFailedException
- Specified by:
execute
in interfaceSurefireTestSetExecutor
- Throws:
TestSetFailedException
-
executeTestMethod
private boolean executeTestMethod(java.lang.Class<?> testClass, java.lang.reflect.Method method, long testRunId, PojoTestSetExecutor.DiscoveredTestMethods methods) throws TestSetFailedException
- Throws:
TestSetFailedException
-
getTestName
private java.lang.String getTestName(java.lang.String testClassName, java.lang.String testMethodName)
-
setUpFixture
private void setUpFixture(java.lang.Object testObject, PojoTestSetExecutor.DiscoveredTestMethods methods) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
tearDownFixture
private void tearDownFixture(java.lang.Object testObject, PojoTestSetExecutor.DiscoveredTestMethods methods) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
discoverTestMethods
private PojoTestSetExecutor.DiscoveredTestMethods discoverTestMethods(java.lang.Class<?> testClass)
-
isNoArgsInstanceMethod
private static boolean isNoArgsInstanceMethod(java.lang.reflect.Method m)
-
isValidTestMethod
private static boolean isValidTestMethod(java.lang.reflect.Method m)
-
-