|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.castor.xmlctf.XMLTestCase
org.castor.xmlctf.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.
Field Summary | |
---|---|
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. |
Fields inherited from class org.castor.xmlctf.XMLTestCase |
---|
_configuration, _failure, _hasDump, _listener, _listenerGoldFile, _listenerType, _mapping, _name, _outputRootFile, _printStack, _rootClass, _rootClassName, _skip, _suiteName, _test, _unitTest, _verbose |
Constructor Summary | |
---|---|
SourceGeneratorTestCase(CastorTestCase test,
UnitTestCase unit,
SourceGeneratorTest sourceGen)
Creates a new test case for the given setup. |
|
SourceGeneratorTestCase(java.lang.String name)
Create a new SourceGeneratorTestCase with the given name. |
Method Summary | |
---|---|
protected void |
setUp()
Sets up this test suite. |
junit.framework.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). |
Methods inherited from class org.castor.xmlctf.XMLTestCase |
---|
buildObjectModel, checkExceptionWasExpected, cleanup, getTestSuiteName, initializeListeners, invokeEnumeratedMethods, setTestSuiteName, testMarshal, testUnmarshal, testUnmarshal, verbose |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString |
Methods inherited from class junit.framework.Assert |
---|
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, fail, fail, failNotEquals, failNotSame, failSame |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final SourceGeneratorTest _sourceGenConf
protected final boolean _hasRandom
Constructor Detail |
---|
public SourceGeneratorTestCase(CastorTestCase test, UnitTestCase unit, SourceGeneratorTest sourceGen)
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 executedpublic SourceGeneratorTestCase(java.lang.String name)
name
- name for the test caseMethod Detail |
---|
public junit.framework.Test suite()
protected void setUp() throws java.lang.Exception
setUp
in class junit.framework.TestCase
java.lang.Exception
- if anything goes wrongprotected void tearDown() throws java.lang.Exception
tearDown
in class junit.framework.TestCase
java.lang.Exception
- never
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |