junit.framework.Test
public class SchemaTestCase extends XMLTestCase
Modifier and Type | Field | Description |
---|---|---|
protected java.lang.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
Constructor | Description |
---|---|
SchemaTestCase(java.lang.String name) |
Default constructor
|
SchemaTestCase(CastorTestCase castorTc,
UnitTestCase tc) |
Creates a new SchemaTest with the given name
|
Modifier and Type | Method | Description |
---|---|---|
void |
runTest() |
Override this method to run the test and assert its state.
|
void |
setSchemaName(java.lang.String name) |
Sets the name of the XML schema file to test.
|
protected void |
setUp() |
|
static junit.framework.Test |
suite() |
|
protected void |
tearDown() |
Cleans up after this unit test (nothing to do except provide output).
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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, setName, toString
buildObjectModel, checkExceptionWasExpected, cleanup, getTestSuiteName, getXMLContext, initializeListeners, invokeEnumeratedMethods, setTestSuiteName, setXMLContext, testMarshal, testUnmarshal, testUnmarshal, verbose
protected final java.lang.String _goldFileName
public SchemaTestCase(java.lang.String name)
name
- the name of the testpublic SchemaTestCase(CastorTestCase castorTc, UnitTestCase tc)
castorTc
- the reference to the jar/directorytc
- the UnitTestCase that wraps the configuration for this XML Test case.public void setSchemaName(java.lang.String name)
name
- the name of the XML schema file to test.public static junit.framework.Test suite()
protected void setUp() throws java.lang.Exception
setUp
in class XMLTestCase
java.lang.Exception
protected void tearDown() throws java.lang.Exception
tearDown
in class XMLTestCase
java.lang.Exception
- neverpublic void runTest() throws java.lang.Throwable
runTest
in class junit.framework.TestCase
java.lang.Throwable
- if any exception is thrownIntalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com