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.
author: Matt Albrecht groboclown@users.sourceforge.net version: $Date: 2003/02/10 22:52:21 $ since: November 3, 2002
Method Summary
public boolean
canCreate(Class theClass) Checks if the creator can be used on the given class.
Parameters: theClass - the class to check if parsing is acceptable.
public Test
createTest(Class theClass, Method method) Creates a new test, based on the given class and method of the
class.
Parameters: theClass - the class to parse for testing. Parameters: m - the method that will be tested with the new class instance.
Checks if the creator can be used on the given class.
Parameters: theClass - the class to check if parsing is acceptable. whether the creator can generate a test based ontheClass.
Creates a new test, based on the given class and method of the
class.
Parameters: theClass - the class to parse for testing. Parameters: m - the method that will be tested with the new class instance. the generated test, or null if the test could notbe created. exception: InstantiationException - if there was a problem creatingthe class. exception: NoSuchMethodException - if the method does not exist in theclass.