|
||||||||
| 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.XMLTestCase
org.castor.xmlctf.MarshallingFrameworkTestCase
public class MarshallingFrameworkTestCase
This class encapsulates all the logic to run the test patterns for the Castor marshalling framework. This include introspection and mapping.
| Field Summary | |
|---|---|
protected boolean |
_hasRandom
If true, the randomize() function has been implemented in the root class. |
protected MarshallingTest |
_marshallingConf
Contains the configuration for this test case. |
| Fields inherited from class org.castor.xmlctf.XMLTestCase |
|---|
_configuration, _failure, _hasDump, _listener, _listenerGoldFile, _listenerType, _mapping, _name, _outputRootFile, _printStack, _rootClass, _rootClassName, _skip, _suiteName, _test, _unitTest, _verbose |
| Constructor Summary | |
|---|---|
MarshallingFrameworkTestCase(CastorTestCase test,
UnitTestCase unit,
MarshallingTest marshalling)
Creates a CTF test case for the Marshalling framework. |
|
MarshallingFrameworkTestCase(java.lang.String name)
Create a new MarshallingFrameworkTestCase with the given name and a null marshalling configuration. |
|
| Method Summary | |
|---|---|
protected void |
setUp()
Sets up this test suite. |
junit.framework.Test |
suite()
Returns the test suite for this given test setup. |
protected void |
tearDown()
Clean up after a test -- nothing to do except display output. |
| Methods inherited from class org.castor.xmlctf.XMLTestCase |
|---|
buildObjectModel, checkExceptionWasExpected, cleanup, getTestSuiteName, getXMLContext, initializeListeners, invokeEnumeratedMethods, setTestSuiteName, setXMLContext, testMarshal, testUnmarshal, testUnmarshal, verbose |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, runTest, 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 MarshallingTest _marshallingConf
protected final boolean _hasRandom
| Constructor Detail |
|---|
public MarshallingFrameworkTestCase(CastorTestCase test,
UnitTestCase unit,
MarshallingTest marshalling)
test - A Test Caseunit - A configuration element for a test case from a TestDescriptor
configuration filemarshalling - a Marshalling test definition from a TestDescriptor
configuration filepublic MarshallingFrameworkTestCase(java.lang.String name)
name - Name for the MarshallingFrameworkTestCase| Method Detail |
|---|
public junit.framework.Test suite()
protected void setUp()
throws java.lang.Exception
Nothing in this setUp() method should ever be expected to fail. Thus, there are no checks against _failure. If anything goes wrong here, there is a problem with the individual test case configuration.
setUp in class XMLTestCasejava.lang.Exception - if anything goes wrong
protected void tearDown()
throws java.lang.Exception
tearDown in class XMLTestCasejava.lang.Exception - if anything goes wrong
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||