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