|
||||||||
| 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
class 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 | |
|---|---|
TestWithRandomObject(java.lang.String name)
Blank constructor for this test case. |
|
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, format |
| 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
setUp in class junit.framework.TestCasejava.lang.Exception - if anything goes wrong during setup
protected void tearDown()
throws java.lang.Exception
tearDown in class junit.framework.TestCasejava.lang.Exception - if anything goes wrong during teardown
public void runTest()
throws java.lang.Exception
runTest in class junit.framework.TestCasejava.lang.Exception
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||