|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.groboutils.junit.v1.parser.TestClassCreator
Creates Test instances based on a TestClassParser.
Ripped the test method discovery code out of junit.framework.TestSuite to allow it to have usable logic.
This is not covered under the GroboUtils license, but rather under the JUnit license (IBM Public License). This heading may not be totally in line with the license, so I'll change it when I find out what needs to be changed.
Constructor Summary | |
TestClassCreator(ITestCreator tc)
Creates an instance that creates test instances based on the given creator. |
Method Summary | |
void |
clearWarnings()
Remove all current warnings. |
junit.framework.TestSuite |
createAllTestSuite(TestClassParser tcp)
Create a new TestSuite, containing the tests returned by the call to createTests() and createWarningTests. |
junit.framework.Test[] |
createTests(TestClassParser tcp)
This will create all test objects for the test registered with the parser. |
junit.framework.TestSuite |
createTestSuite(TestClassParser tcp)
Create a new TestSuite, containing the tests returned by the call to createTests(). |
static junit.framework.Test |
createWarningTest(java.lang.String message)
Create a new Test that will fail with the given error message. |
junit.framework.Test[] |
createWarningTests(TestClassParser tcp)
For every warning currently known in this creator and the parser, create a Test that fails with the warning's message. |
java.lang.String[] |
getWarnings()
Retrieve all warnings generated during the introspection of the class, or test creation. |
protected void |
warning(java.lang.String message)
Adds a warning message to the inner list of warnings. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TestClassCreator(ITestCreator tc)
java.lang.IllegalArgumentException
- if theClass is
null.Method Detail |
public java.lang.String[] getWarnings()
public void clearWarnings()
public junit.framework.Test[] createTests(TestClassParser tcp)
public junit.framework.Test[] createWarningTests(TestClassParser tcp)
public junit.framework.TestSuite createTestSuite(TestClassParser tcp)
public junit.framework.TestSuite createAllTestSuite(TestClassParser tcp)
public static junit.framework.Test createWarningTest(java.lang.String message)
message
- the text to report in the failure of the created
Test.
protected void warning(java.lang.String message)
message
- the message describing the warning.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |