|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.castor.xmlctf.TestWithRandomObject
Implements a test case that tests code written by the XML source generator. This class uses the generated source to write a randomly generated XML element to a file.
The test follows this sequence:
| Field Summary | |
protected FailureType |
_failure
The failure object that is not null is the test intends to fail. |
protected java.lang.String |
_outputName
File name of our marshaled output. |
| Constructor Summary | |
(package private) |
TestWithRandomObject(java.lang.String name)
Blank constructor for this test case. |
(package private) |
TestWithRandomObject(java.lang.String name,
XMLTestCase tc)
Constructs a test case that when invoked will delegate to the provided test case. |
| Method Summary | |
void |
runTest()
Runs our test case using our delegate object where necessary. |
protected void |
setUp()
Provides setup for our delegated test case, depending on the type of test case we are delegating for. |
protected void |
tearDown()
Provides tear down for our delegated test case, depending on the type of test case we are delegating for. |
| Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, setName, toString |
| Methods inherited from class junit.framework.Assert |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected final FailureType _failure
protected final java.lang.String _outputName
| Constructor Detail |
TestWithRandomObject(java.lang.String name)
name - Name of our delegate test case
TestWithRandomObject(java.lang.String name,
XMLTestCase tc)
name - Name of our delegate test casetc - | Method Detail |
protected void setUp()
throws java.lang.Exception
java.lang.Exception - if anything goes wrong during setup
protected void tearDown()
throws java.lang.Exception
java.lang.Exception - if anything goes wrong during teardown
public void runTest()
throws java.lang.Exception
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||