org.apache.maven.doxia.module.confluence
Class ConfluenceSinkTest

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

public class ConfluenceSinkTest
extends AbstractSinkTest

Test the Confluence Sink

Version:
$Id: ConfluenceSinkTest.java 1467294 2013-04-12 14:51:42Z rfscholte $
Author:
Vincent Siveton
See Also:
ConfluenceSink

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
ConfluenceSinkTest()
           
 
Method Summary
protected  Sink createSink(Writer writer)
          
protected  String getAnchorBlock(String anchor)
          
protected  String getAuthorBlock(String author)
          Not used.
protected  String getBodyBlock()
          Not used.
protected  String getBoldBlock(String text)
          
protected  String getCommentBlock(String text)
          
protected  String getDateBlock(String date)
          Not used.
protected  String getDefinitionListBlock(String definum, String definition)
          Not used.
protected  String getFigureBlock(String source, String caption)
          
protected  String getHeadBlock()
          Not used.
protected  String getHorizontalRuleBlock()
          
protected  String getItalicBlock(String text)
          
protected  String getLineBreakBlock()
          
protected  String getLinkBlock(String link, String text)
          
protected  String getListBlock(String item)
          
protected  String getMonospacedBlock(String text)
          
protected  String getNonBreakingSpaceBlock()
          
protected  String getNumberedListBlock(String item)
          
protected  String getPageBreakBlock()
          
protected  String getParagraphBlock(String text)
          
protected  String getRawTextBlock(String text)
          
protected  String getSection1Block(String title)
          
protected  String getSection2Block(String title)
          
protected  String getSection3Block(String title)
          
protected  String getSection4Block(String title)
          
protected  String getSection5Block(String title)
          
protected  String getSectionTitleBlock(String title)
          
protected  String getTableBlock(String cell, String caption)
          
protected  String getTextBlock(String text)
          
protected  String getTitleBlock(String title)
          Not used.
protected  String getVerbatimBlock(String text)
          
protected  boolean isXmlSink()
          
protected  String outputExtension()
          
 void testAuthor()
          Not used.
 void testBody()
          Not used.
 void testDate()
          Not used.
 void testDefinitionList()
          Not used.
 void testHead()
          Not used.
 void testStrikeStrough()
           
 void testSubScript()
           
 void testSuperScript()
           
 void testTitle()
          Not used.
 void testUnderline()
           
 
Methods inherited from class org.apache.maven.doxia.sink.AbstractSinkTest
getOutputDir, getSink, getSinkContent, setUp, testAnchor, testBold, testComment, testFigure, testFigureWithoutCaption, testHorizontalRule, testItalic, testLineBreak, testLink, testList, testMonospaced, testNonBreakingSpace, testNumberedList, testPageBreak, testParagraph, testRawText, testSection1, testSection2, testSection3, testSection4, testSection5, testSectionTitle, testTable, testTestDocument, testText, testVerbatim, verifyDecorationLineThrough, verifyDecorationUnderline, verifyValignSub, verifyValignSup
 
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

ConfluenceSinkTest

public ConfluenceSinkTest()
Method Detail

createSink

protected Sink createSink(Writer writer)

Specified by:
createSink in class AbstractSinkTest

getAnchorBlock

protected String getAnchorBlock(String anchor)

Specified by:
getAnchorBlock in class AbstractSinkTest

isXmlSink

protected boolean isXmlSink()

Specified by:
isXmlSink in class AbstractSinkTest

getAuthorBlock

protected String getAuthorBlock(String author)
Not used.

Specified by:
getAuthorBlock in class AbstractSinkTest

getBodyBlock

protected String getBodyBlock()
Not used.

Specified by:
getBodyBlock in class AbstractSinkTest

getBoldBlock

protected String getBoldBlock(String text)

Specified by:
getBoldBlock in class AbstractSinkTest

getDateBlock

protected String getDateBlock(String date)
Not used.

Specified by:
getDateBlock in class AbstractSinkTest

getDefinitionListBlock

protected String getDefinitionListBlock(String definum,
                                        String definition)
Not used.

Specified by:
getDefinitionListBlock in class AbstractSinkTest

getFigureBlock

protected String getFigureBlock(String source,
                                String caption)

Specified by:
getFigureBlock in class AbstractSinkTest

getHeadBlock

protected String getHeadBlock()
Not used.

Specified by:
getHeadBlock in class AbstractSinkTest

getHorizontalRuleBlock

protected String getHorizontalRuleBlock()

Specified by:
getHorizontalRuleBlock in class AbstractSinkTest

getItalicBlock

protected String getItalicBlock(String text)

Specified by:
getItalicBlock in class AbstractSinkTest

getLineBreakBlock

protected String getLineBreakBlock()

Specified by:
getLineBreakBlock in class AbstractSinkTest

getLinkBlock

protected String getLinkBlock(String link,
                              String text)

Specified by:
getLinkBlock in class AbstractSinkTest

getListBlock

protected String getListBlock(String item)

Specified by:
getListBlock in class AbstractSinkTest

getMonospacedBlock

protected String getMonospacedBlock(String text)

Specified by:
getMonospacedBlock in class AbstractSinkTest

getNonBreakingSpaceBlock

protected String getNonBreakingSpaceBlock()

Specified by:
getNonBreakingSpaceBlock in class AbstractSinkTest

getNumberedListBlock

protected String getNumberedListBlock(String item)

Specified by:
getNumberedListBlock in class AbstractSinkTest

getPageBreakBlock

protected String getPageBreakBlock()

Specified by:
getPageBreakBlock in class AbstractSinkTest

getParagraphBlock

protected String getParagraphBlock(String text)

Specified by:
getParagraphBlock in class AbstractSinkTest

getRawTextBlock

protected String getRawTextBlock(String text)

Specified by:
getRawTextBlock in class AbstractSinkTest

getSection1Block

protected String getSection1Block(String title)

Specified by:
getSection1Block in class AbstractSinkTest

getSection2Block

protected String getSection2Block(String title)

Specified by:
getSection2Block in class AbstractSinkTest

getSection3Block

protected String getSection3Block(String title)

Specified by:
getSection3Block in class AbstractSinkTest

getSection4Block

protected String getSection4Block(String title)

Specified by:
getSection4Block in class AbstractSinkTest

getSection5Block

protected String getSection5Block(String title)

Specified by:
getSection5Block in class AbstractSinkTest

getSectionTitleBlock

protected String getSectionTitleBlock(String title)

Specified by:
getSectionTitleBlock in class AbstractSinkTest

getTableBlock

protected String getTableBlock(String cell,
                               String caption)

Specified by:
getTableBlock in class AbstractSinkTest

getTextBlock

protected String getTextBlock(String text)

Specified by:
getTextBlock in class AbstractSinkTest

getTitleBlock

protected String getTitleBlock(String title)
Not used.

Specified by:
getTitleBlock in class AbstractSinkTest

getVerbatimBlock

protected String getVerbatimBlock(String text)

Specified by:
getVerbatimBlock in class AbstractSinkTest

outputExtension

protected String outputExtension()

Specified by:
outputExtension in class AbstractModuleTest

testSuperScript

public void testSuperScript()

testSubScript

public void testSubScript()

testStrikeStrough

public void testStrikeStrough()

testUnderline

public void testUnderline()

testAuthor

public void testAuthor()
Not used.

Overrides:
testAuthor in class AbstractSinkTest

testDate

public void testDate()
Not used.

Overrides:
testDate in class AbstractSinkTest

testHead

public void testHead()
Not used.

Overrides:
testHead in class AbstractSinkTest

testBody

public void testBody()
Not used.

Overrides:
testBody in class AbstractSinkTest

testTitle

public void testTitle()
Not used.

Overrides:
testTitle in class AbstractSinkTest

testDefinitionList

public void testDefinitionList()
Not used.

Overrides:
testDefinitionList in class AbstractSinkTest

getCommentBlock

protected String getCommentBlock(String text)

Specified by:
getCommentBlock in class AbstractSinkTest


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