Class JUnit3Reflector
java.lang.Object
org.apache.maven.surefire.common.junit3.JUnit3Reflector
Reflection facade for JUnit3 classes
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate final Methodprivate static final Class<?>[]private static final Object[]private final Class<?>[]private static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate final Class<?> private final Class<?> private final Methodprivate final Class<?> private final Constructor<?> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconstructTestObject(Class<?> testClass) private static ObjectcreateInstanceFromSuiteMethod(Class<?> testClass) Class<?>[]private static MethodgetRunMethod(Class<?> testClass) private static Constructor<?> getTestConstructor(Class<?> testClass) Class<?> Class<?> booleanprivate static MethodtryGetMethod(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()
-