|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Interface that can create test objects based on a class and a method from within that class, using a specific method. Also provides means to check the class object to see if the implementation can instantiate the test class.
| Method Summary | |
boolean |
canCreate(java.lang.Class theClass)
Checks if the creator can be used on the given class. |
junit.framework.Test |
createTest(java.lang.Class theClass,
java.lang.reflect.Method method)
Creates a new test, based on the given class and method of the class. |
| Method Detail |
public junit.framework.Test createTest(java.lang.Class theClass,
java.lang.reflect.Method method)
throws java.lang.InstantiationException,
java.lang.NoSuchMethodException,
java.lang.reflect.InvocationTargetException,
java.lang.IllegalAccessException,
java.lang.ClassCastException
theClass - the class to parse for testing.
java.lang.InstantiationException - if there was a problem creating
the class.
java.lang.NoSuchMethodException - if the method does not exist in the
class.
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException
java.lang.ClassCastExceptionpublic boolean canCreate(java.lang.Class theClass)
theClass - the class to check if parsing is acceptable.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||