| java.lang.Object net.sourceforge.groboutils.junit.v1.iftc.CxFactory
All known Subclasses: net.sourceforge.groboutils.junit.v1.iftc.CxFactorySample,
CxFactory | abstract public class CxFactory implements ICxFactory(Code) | | Helper abstract class that aids in the setting of a unique and
distinguishable name for a test case's factory.
As of 08-Dec-2002, the original constructor will NOT add the owning
class's name to the factory toString() output. Since the
Ant JUnit report is setup such that the concrete class's tests are
organized under it, this is redundant information, and clutters the
report.
author: Matt Albrecht groboclown@users.sourceforge.net version: $Date: 2003/05/24 16:42:13 $ since: October 30, 2002 |
Constructor Summary | |
public | CxFactory(String name) Specify a unique identifier for this specific factory within the
context of the concrete test that is providing the factory. | public | CxFactory(String name, boolean addClassName) Specify a unique identifier for this specific factory within the
context of the concrete test that is providing the factory. |
Method Summary | |
abstract public Object | createImplObject() | public void | tearDown(Object implObject) Most factories have no need for a tearDown method, so a default
(do-nothing) implementation has been provided here. | public String | toString() Override the Java-default toString, and provide our distinguishable
name. |
CxFactory | public CxFactory(String name)(Code) | | Specify a unique identifier for this specific factory within the
context of the concrete test that is providing the factory. The
CxFactory constructor will not add the test's class name to
this string to create a distinguishable string to help debug the
source of any errors caused by a factory's particular setup. If you
want the owning class's name to appear in the id, use the alternate
constructor.
Parameters: name - the unique identifier within the context of thefactory's owning test class. This cannot be null. exception: IllegalArgumentException - thrown if nameis null. |
CxFactory | public CxFactory(String name, boolean addClassName)(Code) | | Specify a unique identifier for this specific factory within the
context of the concrete test that is providing the factory. The
CxFactory constructor may add the test's class name to
this string to create a distinguishable string to help debug the
source of any errors caused by a factory's particular setup,
depending on the value of addClassName.
Parameters: name - the unique identifier within the context of thefactory's owning test class. This cannot be null. Parameters: addClassName - true if the owning class's name shouldbe added to the id, and false if the name should bethe ID itself. exception: IllegalArgumentException - thrown if nameis null. since: 07-Dec-2002 |
tearDown | public void tearDown(Object implObject) throws Exception(Code) | | Most factories have no need for a tearDown method, so a default
(do-nothing) implementation has been provided here.
|
toString | public String toString()(Code) | | Override the Java-default toString, and provide our distinguishable
name.
the generated distinguishable name. |
|
|