org.apache.maven.doxia.module.latex
Class LatexSinkTest

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.latex.LatexSinkTest
All Implemented Interfaces:
junit.framework.Test, org.apache.maven.doxia.markup.Markup

public class LatexSinkTest
extends org.apache.maven.doxia.sink.AbstractSinkTest

Version:
$Id: LatexSinkTest.java 795033 2009-07-17 10:46:21Z ltheussl $
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
LatexSinkTest()
           
 
Method Summary
protected  org.apache.maven.doxia.sink.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()
          
 
Methods inherited from class org.apache.maven.doxia.sink.AbstractSinkTest
getOutputDir, getSink, getSinkContent, setUp, testAnchor, testAuthor, testBody, testBold, testComment, 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

LatexSinkTest

public LatexSinkTest()
Method Detail

outputExtension

protected String outputExtension()

Specified by:
outputExtension in class org.apache.maven.doxia.AbstractModuleTest

createSink

protected org.apache.maven.doxia.sink.Sink createSink(Writer writer)

Specified by:
createSink in class org.apache.maven.doxia.sink.AbstractSinkTest

isXmlSink

protected boolean isXmlSink()

Specified by:
isXmlSink in class org.apache.maven.doxia.sink.AbstractSinkTest

getTitleBlock

protected String getTitleBlock(String title)

Specified by:
getTitleBlock in class org.apache.maven.doxia.sink.AbstractSinkTest

getAuthorBlock

protected String getAuthorBlock(String author)

Specified by:
getAuthorBlock in class org.apache.maven.doxia.sink.AbstractSinkTest

getDateBlock

protected String getDateBlock(String date)

Specified by:
getDateBlock in class org.apache.maven.doxia.sink.AbstractSinkTest

getHeadBlock

protected String getHeadBlock()

Specified by:
getHeadBlock in class org.apache.maven.doxia.sink.AbstractSinkTest

getBodyBlock

protected String getBodyBlock()

Specified by:
getBodyBlock in class org.apache.maven.doxia.sink.AbstractSinkTest

getSectionTitleBlock

protected String getSectionTitleBlock(String title)

Specified by:
getSectionTitleBlock in class org.apache.maven.doxia.sink.AbstractSinkTest

getSection1Block

protected String getSection1Block(String title)

Specified by:
getSection1Block in class org.apache.maven.doxia.sink.AbstractSinkTest

getSection2Block

protected String getSection2Block(String title)

Specified by:
getSection2Block in class org.apache.maven.doxia.sink.AbstractSinkTest

getSection3Block

protected String getSection3Block(String title)

Specified by:
getSection3Block in class org.apache.maven.doxia.sink.AbstractSinkTest

getSection4Block

protected String getSection4Block(String title)

Specified by:
getSection4Block in class org.apache.maven.doxia.sink.AbstractSinkTest

getSection5Block

protected String getSection5Block(String title)

Specified by:
getSection5Block in class org.apache.maven.doxia.sink.AbstractSinkTest

getListBlock

protected String getListBlock(String item)

Specified by:
getListBlock in class org.apache.maven.doxia.sink.AbstractSinkTest

getNumberedListBlock

protected String getNumberedListBlock(String item)

Specified by:
getNumberedListBlock in class org.apache.maven.doxia.sink.AbstractSinkTest

getDefinitionListBlock

protected String getDefinitionListBlock(String definum,
                                        String definition)

Specified by:
getDefinitionListBlock in class org.apache.maven.doxia.sink.AbstractSinkTest

getFigureBlock

protected String getFigureBlock(String source,
                                String caption)

Specified by:
getFigureBlock in class org.apache.maven.doxia.sink.AbstractSinkTest

getTableBlock

protected String getTableBlock(String cell,
                               String caption)

Specified by:
getTableBlock in class org.apache.maven.doxia.sink.AbstractSinkTest

getParagraphBlock

protected String getParagraphBlock(String text)

Specified by:
getParagraphBlock in class org.apache.maven.doxia.sink.AbstractSinkTest

getVerbatimBlock

protected String getVerbatimBlock(String text)

Specified by:
getVerbatimBlock in class org.apache.maven.doxia.sink.AbstractSinkTest

getHorizontalRuleBlock

protected String getHorizontalRuleBlock()

Specified by:
getHorizontalRuleBlock in class org.apache.maven.doxia.sink.AbstractSinkTest

getPageBreakBlock

protected String getPageBreakBlock()

Specified by:
getPageBreakBlock in class org.apache.maven.doxia.sink.AbstractSinkTest

getAnchorBlock

protected String getAnchorBlock(String anchor)

Specified by:
getAnchorBlock in class org.apache.maven.doxia.sink.AbstractSinkTest

getLinkBlock

protected String getLinkBlock(String link,
                              String text)

Specified by:
getLinkBlock in class org.apache.maven.doxia.sink.AbstractSinkTest

getItalicBlock

protected String getItalicBlock(String text)

Specified by:
getItalicBlock in class org.apache.maven.doxia.sink.AbstractSinkTest

getBoldBlock

protected String getBoldBlock(String text)

Specified by:
getBoldBlock in class org.apache.maven.doxia.sink.AbstractSinkTest

getMonospacedBlock

protected String getMonospacedBlock(String text)

Specified by:
getMonospacedBlock in class org.apache.maven.doxia.sink.AbstractSinkTest

getLineBreakBlock

protected String getLineBreakBlock()

Specified by:
getLineBreakBlock in class org.apache.maven.doxia.sink.AbstractSinkTest

getNonBreakingSpaceBlock

protected String getNonBreakingSpaceBlock()

Specified by:
getNonBreakingSpaceBlock in class org.apache.maven.doxia.sink.AbstractSinkTest

getTextBlock

protected String getTextBlock(String text)

Specified by:
getTextBlock in class org.apache.maven.doxia.sink.AbstractSinkTest

getRawTextBlock

protected String getRawTextBlock(String text)

Specified by:
getRawTextBlock in class org.apache.maven.doxia.sink.AbstractSinkTest

getCommentBlock

protected String getCommentBlock(String text)

Specified by:
getCommentBlock in class org.apache.maven.doxia.sink.AbstractSinkTest


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