org.apache.maven.doxia.module.docbook
Class DocBookIdentityTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.codehaus.plexus.PlexusTestCase
              extended by org.apache.maven.doxia.AbstractModuleTest
                  extended by org.apache.maven.doxia.module.AbstractIdentityTest
                      extended by org.apache.maven.doxia.module.docbook.DocBookIdentityTest
All Implemented Interfaces:
junit.framework.Test, Markup

public class DocBookIdentityTest
extends AbstractIdentityTest

Check that piping a full model through a DocBookParser and a DocBookSink leaves the model unchanged. The test is done in AbstractIdentityTest.


Field Summary
 
Fields inherited from class org.codehaus.plexus.PlexusTestCase
container, context
 
Fields inherited from interface org.apache.maven.doxia.markup.Markup
COLON, EOL, EQUAL, GREATER_THAN, LEFT_CURLY_BRACKET, LEFT_SQUARE_BRACKET, LESS_THAN, MINUS, PLUS, QUOTE, RIGHT_CURLY_BRACKET, RIGHT_SQUARE_BRACKET, SEMICOLON, SLASH, SPACE, STAR
 
Constructor Summary
DocBookIdentityTest()
           
 
Method Summary
protected  Parser createParser()
          Create a new instance of the parser to test.
protected  Sink createSink(Writer writer)
          Return a new instance of the sink that is being tested.
 
Methods inherited from class org.apache.maven.doxia.module.AbstractIdentityTest
assertIdentity, getExpected, getOutputDir, outputExtension, testIdentity
 
Methods inherited from class org.apache.maven.doxia.AbstractModuleTest
getBasedirFile, getTestReader, getTestReader, getTestWriter, getTestWriter, getXmlTestWriter, getXmlTestWriter, outputBaseDir
 
Methods inherited from class org.codehaus.plexus.PlexusTestCase
customizeContext, getBasedir, getClassLoader, getConfiguration, getConfiguration, getConfigurationName, getContainer, getCustomConfigurationName, getResourceAsStream, getTestConfiguration, getTestConfiguration, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, lookup, lookup, release, setUp, tearDown
 
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
 

Constructor Detail

DocBookIdentityTest

public DocBookIdentityTest()
Method Detail

createSink

protected Sink createSink(Writer writer)
Return a new instance of the sink that is being tested.

Specified by:
createSink in class AbstractIdentityTest
Parameters:
writer - The writer for the sink.
Returns:
A new sink.

createParser

protected Parser createParser()
Create a new instance of the parser to test.

Specified by:
createParser in class AbstractIdentityTest
Returns:
the parser to test.


Copyright © 2005-2009 The Apache Software Foundation. All Rights Reserved.