org.apache.maven.surefire.common.junit3
Class JUnit3Reflector

java.lang.Object
  extended by org.apache.maven.surefire.common.junit3.JUnit3Reflector

public final class JUnit3Reflector
extends java.lang.Object


Constructor Summary
JUnit3Reflector(java.lang.ClassLoader testClassLoader)
           
 
Method Summary
 java.lang.Object constructTestObject(java.lang.Class testClass)
           
 java.lang.reflect.Method getAddListenerMethod()
           
 java.lang.Class[] getInterfacesImplementedByDynamicProxy()
           
static java.lang.reflect.Method getMethod(java.lang.Class clazz, java.lang.String methodName, java.lang.Class[] parameters)
           
 java.lang.reflect.Method getRunMethod(java.lang.Class testClass)
           
 java.lang.Class getTestInterface()
           
 java.lang.reflect.Method getTestInterfaceRunMethod()
           
 java.lang.Class getTestResultClass()
           
 boolean isJUnit3Available()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JUnit3Reflector

public JUnit3Reflector(java.lang.ClassLoader testClassLoader)
Method Detail

getMethod

public static java.lang.reflect.Method getMethod(java.lang.Class clazz,
                                                 java.lang.String methodName,
                                                 java.lang.Class[] parameters)

constructTestObject

public java.lang.Object constructTestObject(java.lang.Class testClass)
                                     throws java.lang.IllegalAccessException,
                                            java.lang.reflect.InvocationTargetException,
                                            java.lang.NoSuchMethodException,
                                            java.lang.InstantiationException,
                                            java.lang.ClassNotFoundException
Throws:
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.NoSuchMethodException
java.lang.InstantiationException
java.lang.ClassNotFoundException

getInterfacesImplementedByDynamicProxy

public java.lang.Class[] getInterfacesImplementedByDynamicProxy()

getTestResultClass

public java.lang.Class getTestResultClass()

getAddListenerMethod

public java.lang.reflect.Method getAddListenerMethod()

getTestInterfaceRunMethod

public java.lang.reflect.Method getTestInterfaceRunMethod()

getTestInterface

public java.lang.Class getTestInterface()

getRunMethod

public java.lang.reflect.Method getRunMethod(java.lang.Class testClass)

isJUnit3Available

public boolean isJUnit3Available()


Copyright © 2004-2012 Apache Software Foundation. All Rights Reserved.