org.castor.xmlctf
Class TestSourceGenerator
public class TestSourceGenerator
This class encapsulate all the logic needed to run the source generator by
itself and then compile the file that have been generated. This class does
not do anything additional. It only runs the source generator and ensures
that the generated source will compile without error.
$Revision: 0000 $ $Date: $
_configuration , _failure , _hasDump , _listener , _listenerGoldFile , _listenerType , _mapping , _name , _outputRootFile , _printStack , _rootClass , _rootClassName , _skip , _suiteName , _test , _unitTest , _verbose |
void | runTest() - Runs our source generation test.
|
void | setExpectedSources(List expectedSources) - Sets a collection of expected source files.
|
protected void | setUp() - Sets up this test suite.
|
protected void | tearDown() - Cleans up after this unit test.
|
buildObjectModel , checkExceptionWasExpected , cleanup , getTestSuiteName , getXMLContext , initializeListeners , invokeEnumeratedMethods , setTestSuiteName , setUp , setXMLContext , tearDown , testMarshal , testUnmarshal , testUnmarshal , verbose |
runTest
public void runTest()
Runs our source generation test. Creates, configures, and executes the
source generator on each schema we have to test. Compiles the generated
code. Loads classes via the appropriate class loader.
setExpectedSources
public void setExpectedSources(List expectedSources)
Sets a collection of expected source files.
expectedSources
- A collection of expected source files.
setUp
protected void setUp()
throws java.lang.Exception
Sets up this test suite.
- setUp in interface XMLTestCase
tearDown
protected void tearDown()
throws java.lang.Exception
Cleans up after this unit test.
- tearDown in interface XMLTestCase
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com