org.castor.xmlctf
Class SchemaTestCase
public class SchemaTestCase
A JUnit test case for testing the Castor Schema Object Model.
$Revision: 6787 $ $Date: 2006-04-26 15:14:53 -0600 (Wed, 26 Apr 2006) $protected String | _goldFileName - Gold file to compare a schema against.
|
_configuration , _failure , _hasDump , _listener , _listenerGoldFile , _listenerType , _mapping , _name , _outputRootFile , _printStack , _rootClass , _rootClassName , _skip , _suiteName , _test , _unitTest , _verbose |
void | runTest() - Override this method to run the test and assert its state.
|
void | setSchemaName(String name) - Sets the name of the XML schema file to test.
|
protected void | setUp()
|
static Test | suite()
|
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 |
_goldFileName
protected final String _goldFileName
Gold file to compare a schema against. Optional. Only needed if
schema changes during parsing, i.e., due to redefine element.
SchemaTestCase
public SchemaTestCase(String name)
Default constructor
name
- the name of the test
SchemaTestCase
public SchemaTestCase(CastorTestCase castorTc,
UnitTestCase tc)
Creates a new SchemaTest with the given name
castorTc
- the reference to the jar/directorytc
- the UnitTestCase that wraps the configuration for this XML Test case.
runTest
public void runTest()
throws Throwable
Override this method to run the test and assert its state.
setSchemaName
public void setSchemaName(String name)
Sets the name of the XML schema file to test.
name
- the name of the XML schema file to test.
suite
public static Test suite()
tearDown
protected void tearDown()
throws 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