Class JUnit3Reflector
java.lang.Object
org.apache.maven.surefire.common.junit3.JUnit3Reflector
Reflection facade for JUnit3 classes
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String
private final Method
private static final Class<?>[]
private static final Object[]
private final Class<?>[]
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private final Class<?>
private final Class<?>
private final Method
private final Class<?>
private final Constructor<?>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconstructTestObject
(Class<?> testClass) private static Object
createInstanceFromSuiteMethod
(Class<?> testClass) Class<?>[]
private static Method
getRunMethod
(Class<?> testClass) private static Constructor<?>
getTestConstructor
(Class<?> testClass) Class<?>
Class<?>
boolean
private static Method
tryGetMethod
(Class<?> clazz, String methodName, Class<?>... parameters)
-
Field Details
-
TEST_CASE
- See Also:
-
TEST_RESULT
- See Also:
-
TEST_LISTENER
- See Also:
-
TEST
- See Also:
-
ADD_LISTENER_METHOD
- See Also:
-
RUN_METHOD
- See Also:
-
TEST_SUITE
- See Also:
-
EMPTY_CLASS_ARRAY
-
EMPTY_OBJECT_ARRAY
-
interfacesImplementedByDynamicProxy
-
testResultClass
-
addListenerMethod
-
testInterfaceRunMethod
-
testInterface
-
testCase
-
testsSuiteConstructor
-
-
Constructor Details
-
JUnit3Reflector
-
-
Method Details
-
tryGetMethod
-
getMethod
-
constructTestObject
public Object constructTestObject(Class<?> testClass) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException, InstantiationException -
createInstanceFromSuiteMethod
private static Object createInstanceFromSuiteMethod(Class<?> testClass) throws IllegalAccessException, InvocationTargetException -
getTestConstructor
- Throws:
NoSuchMethodException
-
getInterfacesImplementedByDynamicProxy
-
getTestResultClass
-
getAddListenerMethod
-
getTestInterfaceRunMethod
-
getTestInterface
-
getRunMethod
-
isJUnit3Available
public boolean isJUnit3Available()
-