|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--junitx.framework.TestedClass
TestedClass contains new methods for managing a tested
class through a TestProxy as well as some wrappers to
access methods of the original Class implementation.
| Constructor Summary | |
TestedClass(java.lang.Class aClass)
constructor. |
|
| Method Summary | |
void |
dumpKeys()
dumps constructor and methods keys. |
java.lang.reflect.Constructor |
getConstructor(java.lang.Object[] anArgArray)
finds a constructor based on an array of object arguments |
java.lang.reflect.Constructor |
getConstructor(java.lang.String aConstructorName)
finds a constructor based on a key |
java.lang.reflect.Field |
getField(java.lang.String aFieldName)
gets a field based on it's name |
java.lang.reflect.Method |
getMethod(java.lang.String aMethodKey)
finds a method based on a key |
java.lang.reflect.Method |
getMethod(java.lang.String aMethodName,
java.lang.Object[] anArgArray)
gets a method based on it's name and a argument object array |
java.lang.String |
getPkgName()
returns the package name of the wrapped class. |
java.lang.Class |
getTestedClass()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TestedClass(java.lang.Class aClass)
aClass - a class to be tested| Method Detail |
public java.lang.Class getTestedClass()
public java.lang.String getPkgName()
public java.lang.reflect.Method getMethod(java.lang.String aMethodKey)
aMethodKey - a string key, compare invokeWithKey
documentationMethod instance or null
public java.lang.reflect.Method getMethod(java.lang.String aMethodName,
java.lang.Object[] anArgArray)
throws TestAccessException
aMethodName - method nameanArgArray - an array of argument objectsMethod or nullTestAccessException - if method cannot be returned
public java.lang.reflect.Constructor getConstructor(java.lang.Object[] anArgArray)
throws TestAccessException
anArgArray - an array of object argumentsConstructor instance or nullpublic java.lang.reflect.Constructor getConstructor(java.lang.String aConstructorName)
aConstructorKey - a string key, compare invokeWithKey
documentationConstructor instance or null
public java.lang.reflect.Field getField(java.lang.String aFieldName)
throws TestAccessException
aFieldName - a field nameField or nullTestAccessException - if field cannot be returnedpublic void dumpKeys()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||