|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sourceforge.groboutils.junit.v1.parser.DelegateTestCreator
Allows for an ordered set of TestCreator instances to be queried for generating instances.
| Constructor Summary | |
DelegateTestCreator(ITestCreator[] tc)
Create the delegation with an ordered array of creators. |
|
| 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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DelegateTestCreator(ITestCreator[] tc)
| Method Detail |
public boolean canCreate(java.lang.Class theClass)
canCreate in interface ITestCreatortheClass - the class to check if parsing is acceptable.
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
createTest in interface ITestCreatortheClass - 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.ClassCastException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||