org.apache.maven.doxia.module.apt
Class AptParserTest

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

public class AptParserTest
extends AbstractParserTest

Version:
$Id: AptParserTest.java 747735 2009-02-25 10:43:09Z ltheussl $
Author:
Vincent Siveton

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
AptParserTest()
           
 
Method Summary
protected  Parser createParser()
          Create a new instance of the parser to test.
protected  String outputExtension()
          Determines the default file extension for the current module.
protected  void setUp()
          
 void testLineBreak()
           
 void testSnippet()
           
 void testSnippetMacro()
           
 void testTestDocument()
          Parses the test document test.apt and re-emits it into parser/test.apt.
 void testTocMacro()
           
 
Methods inherited from class org.apache.maven.doxia.parser.AbstractParserTest
getOutputDir, testDocument, testParser
 
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

AptParserTest

public AptParserTest()
Method Detail

setUp

protected void setUp()
              throws Exception

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

createParser

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

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

testLineBreak

public void testLineBreak()
                   throws Exception
Throws:
Exception

testSnippetMacro

public void testSnippetMacro()
                      throws Exception
Throws:
Exception

testSnippet

public void testSnippet()
                 throws Exception
Throws:
Exception

testTocMacro

public void testTocMacro()
                  throws Exception
Throws:
Exception

testTestDocument

public void testTestDocument()
                      throws IOException,
                             ParseException
Parses the test document test.apt and re-emits it into parser/test.apt.

Throws:
IOException - if the test file cannot be read.
ParseException - if the test file cannot be parsed.

outputExtension

protected String outputExtension()
Determines the default file extension for the current module.

Specified by:
outputExtension in class AbstractModuleTest
Returns:
The default file extension.


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