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

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.sink.AbstractSinkTest
                      extended by org.apache.maven.doxia.module.xdoc.XdocSinkTest
                          extended by org.apache.maven.doxia.module.xdoc.XmlWriterXdocSinkTest
All Implemented Interfaces:
junit.framework.Test, Markup

public class XmlWriterXdocSinkTest
extends XdocSinkTest

Since:
1.1
Version:
$Id: XmlWriterXdocSinkTest.java 736001 2009-01-20 12:31:12Z vsiveton $
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
XmlWriterXdocSinkTest()
           
 
Method Summary
protected  Sink createSink(Writer writer)
          Return a new instance of the sink that is being tested.
protected  String getDefinitionListBlock(String definum, String definition)
          Returns a DefinitionList block generated by this sink.
protected  String getFigureBlock(String source, String caption)
          Returns a Figure block generated by this sink.
protected  String getHorizontalRuleBlock()
          Returns a HorizontalRule block generated by this sink.
protected  String getLineBreakBlock()
          Returns a LineBreak block generated by this sink.
protected  String getListBlock(String item)
          Returns a list block generated by this sink.
protected  String getNumberedListBlock(String item)
          Returns a NumberedList block generated by this sink.
protected  String getSection1Block(String title)
          Returns a Section1 block generated by this sink.
protected  String getSection2Block(String title)
          Returns a Section2 block generated by this sink.
protected  String getTableBlock(String cell, String caption)
          Returns a Table block generated by this sink.
 
Methods inherited from class org.apache.maven.doxia.module.xdoc.XdocSinkTest
getAnchorBlock, getAuthorBlock, getBodyBlock, getBoldBlock, getDateBlock, getHeadBlock, getItalicBlock, getLinkBlock, getMonospacedBlock, getNonBreakingSpaceBlock, getPageBreakBlock, getParagraphBlock, getRawTextBlock, getSection3Block, getSection4Block, getSection5Block, getSectionTitleBlock, getTextBlock, getTitleBlock, getVerbatimBlock, isXmlSink, outputExtension
 
Methods inherited from class org.apache.maven.doxia.sink.AbstractSinkTest
getOutputDir, getSink, getSinkContent, setUp, testAnchor, testAuthor, testBody, testBold, testDate, testDefinitionList, testFigure, testHead, testHorizontalRule, testItalic, testLineBreak, testLink, testList, testMonospaced, testNonBreakingSpace, testNumberedList, testPageBreak, testParagraph, testRawText, testSection1, testSection2, testSection3, testSection4, testSection5, testSectionTitle, testTable, testTestDocument, testText, testTitle, testVerbatim
 
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

XmlWriterXdocSinkTest

public XmlWriterXdocSinkTest()
Method Detail

createSink

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

Overrides:
createSink in class XdocSinkTest
Parameters:
writer - The writer for the sink.
Returns:
A new sink.

getSection1Block

protected String getSection1Block(String title)
Returns a Section1 block generated by this sink.

Overrides:
getSection1Block in class XdocSinkTest
Parameters:
title - The title to use.
Returns:
The result of invoking a Section1 block on the current sink.
See Also:
AbstractSinkTest.testSection1()

getSection2Block

protected String getSection2Block(String title)
Returns a Section2 block generated by this sink.

Overrides:
getSection2Block in class XdocSinkTest
Parameters:
title - The title to use.
Returns:
The result of invoking a Section2 block on the current sink.
See Also:
AbstractSinkTest.testSection2()

getListBlock

protected String getListBlock(String item)
Returns a list block generated by this sink.

Overrides:
getListBlock in class XdocSinkTest
Parameters:
item - The item to use.
Returns:
The result of invoking a list block on the current sink.
See Also:
AbstractSinkTest.testList()

getNumberedListBlock

protected String getNumberedListBlock(String item)
Returns a NumberedList block generated by this sink.

Overrides:
getNumberedListBlock in class XdocSinkTest
Parameters:
item - The item to use.
Returns:
The result of invoking a NumberedList block on the current sink.
See Also:
AbstractSinkTest.testNumberedList()

getDefinitionListBlock

protected String getDefinitionListBlock(String definum,
                                        String definition)
Returns a DefinitionList block generated by this sink.

Overrides:
getDefinitionListBlock in class XdocSinkTest
Parameters:
definum - The term to define.
definition - The definition.
Returns:
The result of invoking a DefinitionList block on the current sink.
See Also:
AbstractSinkTest.testDefinitionList()

getFigureBlock

protected String getFigureBlock(String source,
                                String caption)
Returns a Figure block generated by this sink.

Overrides:
getFigureBlock in class XdocSinkTest
Parameters:
source - The figure source string.
caption - The caption to use (may be null).
Returns:
The result of invoking a Figure block on the current sink.
See Also:
AbstractSinkTest.testFigure()

getTableBlock

protected String getTableBlock(String cell,
                               String caption)
Returns a Table block generated by this sink.

Overrides:
getTableBlock in class XdocSinkTest
Parameters:
cell - A tabel cell to use.
caption - The caption to use (may be null).
Returns:
The result of invoking a Table block on the current sink.
See Also:
AbstractSinkTest.testTable()

getHorizontalRuleBlock

protected String getHorizontalRuleBlock()
Returns a HorizontalRule block generated by this sink.

Overrides:
getHorizontalRuleBlock in class XdocSinkTest
Returns:
The result of invoking a HorizontalRule block on the current sink.
See Also:
AbstractSinkTest.testHorizontalRule()

getLineBreakBlock

protected String getLineBreakBlock()
Returns a LineBreak block generated by this sink.

Overrides:
getLineBreakBlock in class XdocSinkTest
Returns:
The result of invoking a LineBreak block on the current sink.
See Also:
AbstractSinkTest.testLineBreak()


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