org.castor.xmlctf
Class 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.
$Revision: 6787 $ $Date: 2004-09-10 18:23:03 -0600 (Fri, 10 Sep 2004) $
_configuration , _failure , _hasDump , _listener , _listenerGoldFile , _listenerType , _mapping , _name , _outputRootFile , _printStack , _rootClass , _rootClassName , _skip , _suiteName , _test , _unitTest , _verbose |
protected void | setUp() - Sets up this test suite.
|
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 , setUp , setXMLContext , tearDown , testMarshal , testUnmarshal , testUnmarshal , verbose |
_hasRandom
protected final boolean _hasRandom
If true, the randomize() function has been implemented in the root class.
_marshallingConf
protected final MarshallingTest _marshallingConf
Contains the configuration for this test case. The configuration is
directly read for the test descriptor file located in a jar or in a
directory.
MarshallingFrameworkTestCase
public MarshallingFrameworkTestCase(String name)
Create a new MarshallingFrameworkTestCase with the given name and a null
marshalling configuration. This constructor should not be used!
name
- Name for the MarshallingFrameworkTestCase
MarshallingFrameworkTestCase
public MarshallingFrameworkTestCase(CastorTestCase test,
UnitTestCase unit,
MarshallingTest marshalling)
Creates a CTF test case for the Marshalling framework.
test
- A Test Caseunit
- A configuration element for a test case from a TestDescriptor
configuration filemarshalling
- a Marshalling test definition from a TestDescriptor
configuration file
setUp
protected void setUp()
throws java.lang.Exception
Sets up this test suite. Loads the mapping file if any.
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 interface XMLTestCase
suite
public Test suite()
Returns the test suite for this given test setup.
- the test suite for this given test setup.
tearDown
protected void tearDown()
throws java.lang.Exception
Clean up after a test -- nothing to do except display output.
- tearDown in interface XMLTestCase
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com