junit.com.mcdermottroe.exemplar.output.xslt
Class GeneratorTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by junit.com.mcdermottroe.exemplar.ExemplarTestCase<T>
              extended by junit.com.mcdermottroe.exemplar.NormalClassTestCase<T>
                  extended by junit.com.mcdermottroe.exemplar.output.XMLParserGeneratorTestCase<T>
                      extended by junit.com.mcdermottroe.exemplar.output.XMLParserSourceGeneratorTestCase<Generator>
                          extended by junit.com.mcdermottroe.exemplar.output.xslt.GeneratorTest
All Implemented Interfaces:
junit.framework.Test

public class GeneratorTest
extends XMLParserSourceGeneratorTestCase<Generator>

Test class for Generator.

Since:
0.1

Field Summary
 
Fields inherited from class junit.com.mcdermottroe.exemplar.NormalClassTestCase
allowPublicStaticMembers, ignoreHashCodeTests
 
Fields inherited from class junit.com.mcdermottroe.exemplar.ExemplarTestCase
DELIBERATE_PASS, testedClass, TMP
 
Constructor Summary
GeneratorTest()
           
 
Method Summary
 Collection<File> generatedFiles(File outputDir, XMLDocumentType docType)
          Get the names of the Files which were created by XMLParserSourceGenerator.generateParser(XMLDocumentType, File).
 void setUp()
          Set up the JUnit test.
 void testDescribeAPI()
          Test XMLParserGenerator.describeAPI().
 
Methods inherited from class junit.com.mcdermottroe.exemplar.output.XMLParserSourceGeneratorTestCase
testDescribeLanguage, testGenerateParser
 
Methods inherited from class junit.com.mcdermottroe.exemplar.output.XMLParserGeneratorTestCase
getSampleDocTypes
 
Methods inherited from class junit.com.mcdermottroe.exemplar.NormalClassTestCase
addSample, samples, testAllConstructorsNonPrivate, testAllFieldsPrivateOrProtectedOrPublicStaticFinal, testCompareToConsistentWithEquals, testCompareToNullThrowsNPE, testCompareToSignsConsistent, testCompareToTransitive, testCopyable, testEqualsConsistent, testEqualsNullFalse, testEqualsNullPointerException, testEqualsReflexive, testEqualsSymmetric, testEqualsTransitive, testGetCopyProducesIdenticalObject, testHashCodeConsistentOverTime, testHashCodeConsistentWithEquals, testImplementsCopyable, testSerialization, testToStringConsistent
 
Methods inherited from class junit.com.mcdermottroe.exemplar.ExemplarTestCase
getTestedClass, testAllMethodsBeingTested, testCorrectPackage
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, 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, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GeneratorTest

public GeneratorTest()
Method Detail

setUp

public void setUp()
           throws Exception
Set up the JUnit test.

Overrides:
setUp in class XMLParserGeneratorTestCase<Generator>
Throws:
Exception - if TestCase.setUp() throws one.
See Also:
ExemplarTestCase.testedClass, TestCase.setUp()

testDescribeAPI

public void testDescribeAPI()
Test XMLParserGenerator.describeAPI().

Overrides:
testDescribeAPI in class XMLParserSourceGeneratorTestCase<Generator>

generatedFiles

public Collection<File> generatedFiles(File outputDir,
                                       XMLDocumentType docType)
Get the names of the Files which were created by XMLParserSourceGenerator.generateParser(XMLDocumentType, File).

Specified by:
generatedFiles in class XMLParserSourceGeneratorTestCase<Generator>
Parameters:
outputDir - The directory in which the files were constructed.
docType - The XMLDocumentType for which we are generating a parser.
Returns:
A Collection of Files which should have been generated by the output module.