|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectccc.commons.Testing
public final class Testing
Helper methods for testing.
Method Summary | ||
---|---|---|
static void |
construct(java.lang.Class<?> clazz)
Constructs an instance of a class. |
|
static
|
dummy(java.lang.Class<T> theInterface)
Create a test dummy. |
|
static java.lang.String |
dummyString(char c,
int length)
Create a dummy string by repeating the specified character, 'length' times. |
|
static
|
stub(java.lang.Class<T> theInterface)
Create a test dummy. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <T> T dummy(java.lang.Class<T> theInterface)
T
- The type of the interface.theInterface
- The interface the dummy should implement.
public static <T> T stub(java.lang.Class<T> theInterface)
T
- The type of the interface.theInterface
- The interface the dummy should implement.
public static java.lang.String dummyString(char c, int length)
c
- The character to repeat.length
- The length of the string.
public static void construct(java.lang.Class<?> clazz)
Calls the no-args constructor, making it accessible if necessary.
clazz
- The class to construct.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |