org.castor.xmlctf
public class MarshallingFrameworkTestCase extends XMLTestCase
Modifier and Type | Field and Description |
---|---|
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.
|
_configuration, _failure, _hasDump, _listener, _listenerGoldFile, _listenerType, _mapping, _name, _outputRootFile, _printStack, _rootClass, _rootClassName, _skip, _suiteName, _test, _unitTest, _verbose
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
buildObjectModel, checkExceptionWasExpected, cleanup, getTestSuiteName, getXMLContext, initializeListeners, invokeEnumeratedMethods, setTestSuiteName, setXMLContext, testMarshal, testUnmarshal, testUnmarshal, verbose
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString
protected final MarshallingTest _marshallingConf
protected final boolean _hasRandom
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 MarshallingFrameworkTestCasepublic 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 XMLTestCase
java.lang.Exception
- if anything goes wrongprotected void tearDown() throws java.lang.Exception
tearDown
in class XMLTestCase
java.lang.Exception
- if anything goes wrongIntalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com