org.castor.xmlctf
Class SourceGeneratorTestCase
public class SourceGeneratorTestCase
This class encapsulate all the logic to run the tests patterns for the source
generator. It is able to run the source generator by itself and then compile
the file that have been generated.
$Revision: 7006 $ $Date: 2005-02-28 17:22:46 -0700 (Mon, 28 Feb 2005) $protected boolean | _hasRandom - If true, the randomize() function has been implemented in the root class.
|
protected SourceGeneratorTest | _sourceGenConf - Contains the information for the configuration for all the tests in this jar.
|
_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() - Cleans up after this unit test (nothing to do except provide 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.
_sourceGenConf
protected final SourceGeneratorTest _sourceGenConf
Contains the information for the configuration for all the tests in this jar.
SourceGeneratorTestCase
public SourceGeneratorTestCase(String name)
Create a new SourceGeneratorTestCase with the given name.
name
- name for the test case
SourceGeneratorTestCase
public SourceGeneratorTestCase(CastorTestCase test,
UnitTestCase unit,
SourceGeneratorTest sourceGen)
Creates a new test case for the given setup.
test
- the reference to the jar/directoryunit
- the UnitTestCase that wraps the configuration for this XML
Test case.sourceGen
- the Source Generator test to be executed
setUp
protected void setUp()
throws java.lang.Exception
Sets up this test suite.
- 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
Cleans up after this unit test (nothing to do except provide output).
- tearDown in interface XMLTestCase
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com