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 classPojoTestSetExecutor.DiscoveredTestMethods
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.Object[]EMPTY_OBJECT_ARRAYprivate JUnit3Reporterreporterprivate static java.lang.StringSETUP_METHOD_NAMEprivate static java.lang.StringTEARDOWN_METHOD_NAMEprivate static java.lang.StringTEST_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.DiscoveredTestMethodsdiscoverTestMethods(java.lang.Class<?> testClass)voidexecute(java.lang.Class<?> testClass, java.lang.ClassLoader loader)private booleanexecuteTestMethod(java.lang.Class<?> testClass, java.lang.reflect.Method method, long testRunId, PojoTestSetExecutor.DiscoveredTestMethods methods)private java.lang.StringgetTestName(java.lang.String testClassName, java.lang.String testMethodName)private static booleanisNoArgsInstanceMethod(java.lang.reflect.Method m)private static booleanisValidTestMethod(java.lang.reflect.Method m)private voidsetUpFixture(java.lang.Object testObject, PojoTestSetExecutor.DiscoveredTestMethods methods)private voidtearDownFixture(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:
executein 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)
-
-