org.apache.maven.doxia.module.xdoc
Class XdocParserTest

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.parser.AbstractParserTest
                      extended by org.apache.maven.doxia.module.xdoc.XdocParserTest
All Implemented Interfaces:
junit.framework.Test, Markup

public class XdocParserTest
extends AbstractParserTest

Since:
1.0
Version:
$Id: XdocParserTest.java 1467756 2013-04-14 09:57:51Z hboutemy $
Author:
Jason van Zyl, Emmanuel Venisse

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
XdocParserTest()
           
 
Method Summary
protected  Parser createParser()
          
protected  String outputExtension()
          
protected  void setUp()
           
 void testDocumentBodyEventsList()
           
 void testEntities()
           
 void testHeadEventsList()
           
 void testJavaScript()
          Test script block.
 void testMacroExceptions()
          Test invalid macro tags.
 void testNestedSectionsEventsList()
           
 void testPreEOL()
           
 void testSectionAttributes()
           
 void testSectionEventsList()
           
 void testSectionIdAnchor()
          Test section with ids.
 void testSnippetMacro()
           
 void testSourceContainingDTD()
           
 void testSourceEventsList()
           
 void testStyleWithCData()
           
 void testTocMacro()
           
 void testUnknown()
          Test unknown tags.
 
Methods inherited from class org.apache.maven.doxia.parser.AbstractParserTest
assertAttributeEquals, assertEquals, assertEquals, getOutputDir, testDocument, testParser
 
Methods inherited from class org.apache.maven.doxia.AbstractModuleTest
getBasedirFile, getTestReader, getTestReader, getTestWriter, getTestWriter, getTestWriterFile, getTestWriterFile, 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, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XdocParserTest

public XdocParserTest()
Method Detail

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class org.codehaus.plexus.PlexusTestCase
Throws:
Exception

outputExtension

protected String outputExtension()

Specified by:
outputExtension in class AbstractModuleTest

createParser

protected Parser createParser()

Specified by:
createParser in class AbstractParserTest

testSnippetMacro

public void testSnippetMacro()
                      throws Exception
Throws:
Exception

testTocMacro

public void testTocMacro()
                  throws Exception
Throws:
Exception

testHeadEventsList

public void testHeadEventsList()
                        throws Exception
Throws:
Exception

testDocumentBodyEventsList

public void testDocumentBodyEventsList()
                                throws Exception
Throws:
Exception

testSectionEventsList

public void testSectionEventsList()
                           throws Exception
Throws:
Exception

testSectionAttributes

public void testSectionAttributes()
                           throws Exception
Throws:
Exception

testNestedSectionsEventsList

public void testNestedSectionsEventsList()
                                  throws Exception
Throws:
Exception

testSourceEventsList

public void testSourceEventsList()
                          throws Exception
Throws:
Exception

testSourceContainingDTD

public void testSourceContainingDTD()
                             throws Exception
Throws:
Exception

testPreEOL

public void testPreEOL()
                throws Exception
Throws:
Exception

testSectionIdAnchor

public void testSectionIdAnchor()
                         throws Exception
Test section with ids.

Throws:
Exception - if any.

testJavaScript

public void testJavaScript()
                    throws Exception
Test script block.

Throws:
Exception - if any.

testUnknown

public void testUnknown()
                 throws Exception
Test unknown tags.

Throws:
Exception - if any.

testMacroExceptions

public void testMacroExceptions()
Test invalid macro tags.


testEntities

public void testEntities()
                  throws Exception
Throws:
Exception

testStyleWithCData

public void testStyleWithCData()
                        throws Exception
Throws:
Exception


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