|
Keel 2.1RC2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.commons.collections.BulkTestSuiteMaker
| Field Summary | |
private java.util.List |
ignoredList of ignored simple test names. |
private java.lang.String |
prefixThe prefix for simple test methods. |
private junit.framework.TestSuite |
resultThe TestSuite we're currently populating. |
private java.lang.Class |
startingClassThe class that defines simple and bulk tests methods. |
| Constructor Summary | |
BulkTestSuiteMaker(java.lang.Class startingClass)Constructor. |
|
| Method Summary | |
(package private) void |
addBulk(BulkTest bulk, java.lang.reflect.Method m)Adds a whole new suite of tests that are defined by the result of the given bulk test method. |
(package private) void |
addTest(BulkTest bulk, java.lang.reflect.Method m)Adds the simple test defined by the given method to the TestSuite. |
private static java.lang.String |
getBaseName(java.lang.Class c)Returns the base name of the given class. |
private static java.lang.reflect.Constructor |
getTestCaseConstructor(java.lang.Class c) |
private static boolean |
isBulk(java.lang.reflect.Method m)Returns true if the given method is a bulk test method. |
private static boolean |
isTest(java.lang.reflect.Method m)Returns true if the given method is a simple test method. |
junit.framework.TestSuite |
make()Makes a hierarchal TestSuite based on the starting class. |
(package private) void |
make(BulkTest bulk)Appends all the simple tests and bulk tests defined by the given instance's class to the current TestSuite. |
private static BulkTest |
makeFirstTestCase(java.lang.Class c) |
private static BulkTest |
makeTestCase(java.lang.Class c, java.lang.reflect.Method m) |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private java.lang.Class startingClass
private java.util.List ignored
private junit.framework.TestSuite result
private java.lang.String prefix
| Constructor Detail |
public BulkTestSuiteMaker(java.lang.Class startingClass)
startingClass - the starting class| Method Detail |
public junit.framework.TestSuite make()
void make(BulkTest bulk)
bulk - An instance of the class that defines simple and bulk tests for us to append
void addTest(BulkTest bulk,
java.lang.reflect.Method m)
bulk - The instance of the class that defined the method (I know it's wierd. But the point is, we can clone the instance and not have to worry about constructors.)m - The simple test method
void addBulk(BulkTest bulk,
java.lang.reflect.Method m)
bulk - The instance of the class that defined the methodm - The bulk test methodprivate static java.lang.String getBaseName(java.lang.Class c)
c - the classprivate static java.lang.reflect.Constructor getTestCaseConstructor(java.lang.Class c)
private static BulkTest makeTestCase(java.lang.Class c,
java.lang.reflect.Method m)
private static BulkTest makeFirstTestCase(java.lang.Class c)
private static boolean isTest(java.lang.reflect.Method m)
private static boolean isBulk(java.lang.reflect.Method m)
|
Keel 2.1RC2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||