org.apache.maven.doxia.module.xhtml
Class XhtmlIdentityTest

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.xhtml.XhtmlIdentityTest
All Implemented Interfaces:
junit.framework.Test, Markup

public class XhtmlIdentityTest
extends AbstractIdentityTest

Check that piping a full model through an XhtmlParser and an XhtmlSink leaves the model unchanged.


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
XhtmlIdentityTest()
           
 
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.
protected  String getExpected()
          
protected  void setUp()
          
 
Methods inherited from class org.apache.maven.doxia.module.AbstractIdentityTest
assertIdentity, 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, 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

XhtmlIdentityTest

public XhtmlIdentityTest()
Method Detail

setUp

protected void setUp()
              throws Exception

Overrides:
setUp in class org.codehaus.plexus.PlexusTestCase
Throws:
Exception

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.

getExpected

protected String getExpected()

Overrides:
getExpected in class AbstractIdentityTest
Returns:
the expected identity string


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