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

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.xhtml.XhtmlSinkTest
All Implemented Interfaces:
junit.framework.Test, Markup
Direct Known Subclasses:
XhtmlSinkWithLanguageIdTest

public class XhtmlSinkTest
extends AbstractSinkTest

Since:
1.0
Version:
$Id: XhtmlSinkTest.java 1467294 2013-04-12 14:51:42Z rfscholte $
Author:
Jason van Zyl

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
XhtmlSinkTest()
           
 
Method Summary
protected  Sink createSink(Writer writer)
          
protected  String getAnchorBlock(String anchor)
          
protected  String getAuthorBlock(String author)
          
protected  String getBodyBlock()
          
protected  String getBoldBlock(String text)
          
protected  String getCommentBlock(String text)
          
protected  String getDateBlock(String date)
          
protected  String getDefinitionListBlock(String definum, String definition)
          
protected  String getFigureBlock(String source, String caption)
          
protected  String getHeadBlock()
          
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)
          
protected  String getVerbatimBlock(String text)
          
protected  boolean isXmlSink()
          
protected  String outputExtension()
          
 void testEntities()
          Test entities is section titles and paragraphs.
 void testHead()
          Test head events.
 void testLinks()
          Test link generation.
 void testTable()
          
 
Methods inherited from class org.apache.maven.doxia.sink.AbstractSinkTest
getOutputDir, getSink, getSinkContent, setUp, testAnchor, testAuthor, testBody, testBold, testComment, testDate, testDefinitionList, testFigure, testFigureWithoutCaption, testHorizontalRule, testItalic, testLineBreak, testLink, testList, testMonospaced, testNonBreakingSpace, testNumberedList, testPageBreak, testParagraph, testRawText, testSection1, testSection2, testSection3, testSection4, testSection5, testSectionTitle, testTestDocument, testText, testTitle, 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

XhtmlSinkTest

public XhtmlSinkTest()
Method Detail

outputExtension

protected String outputExtension()

Specified by:
outputExtension in class AbstractModuleTest

createSink

protected Sink createSink(Writer writer)

Specified by:
createSink in class AbstractSinkTest

isXmlSink

protected boolean isXmlSink()

Specified by:
isXmlSink in class AbstractSinkTest

testLinks

public void testLinks()
               throws Exception
Test link generation.

Throws:
Exception - if any.

getTitleBlock

protected String getTitleBlock(String title)

Specified by:
getTitleBlock in class AbstractSinkTest

getAuthorBlock

protected String getAuthorBlock(String author)

Specified by:
getAuthorBlock in class AbstractSinkTest

getDateBlock

protected String getDateBlock(String date)

Specified by:
getDateBlock in class AbstractSinkTest

getHeadBlock

protected String getHeadBlock()

Specified by:
getHeadBlock in class AbstractSinkTest

getBodyBlock

protected String getBodyBlock()

Specified by:
getBodyBlock in class AbstractSinkTest

getSectionTitleBlock

protected String getSectionTitleBlock(String title)

Specified by:
getSectionTitleBlock 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

getListBlock

protected String getListBlock(String item)

Specified by:
getListBlock in class AbstractSinkTest

getNumberedListBlock

protected String getNumberedListBlock(String item)

Specified by:
getNumberedListBlock in class AbstractSinkTest

getDefinitionListBlock

protected String getDefinitionListBlock(String definum,
                                        String definition)

Specified by:
getDefinitionListBlock in class AbstractSinkTest

getFigureBlock

protected String getFigureBlock(String source,
                                String caption)

Specified by:
getFigureBlock in class AbstractSinkTest

getTableBlock

protected String getTableBlock(String cell,
                               String caption)

Specified by:
getTableBlock in class AbstractSinkTest

testTable

public void testTable()

Overrides:
testTable in class AbstractSinkTest

getParagraphBlock

protected String getParagraphBlock(String text)

Specified by:
getParagraphBlock in class AbstractSinkTest

getVerbatimBlock

protected String getVerbatimBlock(String text)

Specified by:
getVerbatimBlock in class AbstractSinkTest

getHorizontalRuleBlock

protected String getHorizontalRuleBlock()

Specified by:
getHorizontalRuleBlock in class AbstractSinkTest

getPageBreakBlock

protected String getPageBreakBlock()

Specified by:
getPageBreakBlock in class AbstractSinkTest

getAnchorBlock

protected String getAnchorBlock(String anchor)

Specified by:
getAnchorBlock in class AbstractSinkTest

getLinkBlock

protected String getLinkBlock(String link,
                              String text)

Specified by:
getLinkBlock in class AbstractSinkTest

getItalicBlock

protected String getItalicBlock(String text)

Specified by:
getItalicBlock in class AbstractSinkTest

getBoldBlock

protected String getBoldBlock(String text)

Specified by:
getBoldBlock in class AbstractSinkTest

getMonospacedBlock

protected String getMonospacedBlock(String text)

Specified by:
getMonospacedBlock in class AbstractSinkTest

getLineBreakBlock

protected String getLineBreakBlock()

Specified by:
getLineBreakBlock in class AbstractSinkTest

getNonBreakingSpaceBlock

protected String getNonBreakingSpaceBlock()

Specified by:
getNonBreakingSpaceBlock in class AbstractSinkTest

getTextBlock

protected String getTextBlock(String text)

Specified by:
getTextBlock in class AbstractSinkTest

getRawTextBlock

protected String getRawTextBlock(String text)

Specified by:
getRawTextBlock in class AbstractSinkTest

testEntities

public void testEntities()
Test entities is section titles and paragraphs.


testHead

public void testHead()
Test head events.

Overrides:
testHead 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.