|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase org.codehaus.plexus.PlexusTestCase org.apache.maven.doxia.AbstractModuleTest org.apache.maven.doxia.sink.AbstractSinkTest org.apache.maven.doxia.module.xhtml.XhtmlSinkTest
public class XhtmlSinkTest
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)
Return a new instance of the sink that is being tested. |
protected String |
getAnchorBlock(String anchor)
Returns a Anchor block generated by this sink. |
protected String |
getAuthorBlock(String author)
Returns an author block generated by this sink. |
protected String |
getBodyBlock()
Returns a body block generated by this sink. |
protected String |
getBoldBlock(String text)
Returns a Bold block generated by this sink. |
protected String |
getDateBlock(String date)
Returns a date block generated by this sink. |
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 |
getHeadBlock()
Returns a head block generated by this sink. |
protected String |
getHorizontalRuleBlock()
Returns a HorizontalRule block generated by this sink. |
protected String |
getItalicBlock(String text)
Returns a Italic block generated by this sink. |
protected String |
getLineBreakBlock()
Returns a LineBreak block generated by this sink. |
protected String |
getLinkBlock(String link,
String text)
Returns a Link block generated by this sink. |
protected String |
getListBlock(String item)
Returns a list block generated by this sink. |
protected String |
getMonospacedBlock(String text)
Returns a Monospaced block generated by this sink. |
protected String |
getNonBreakingSpaceBlock()
Returns a NonBreakingSpace block generated by this sink. |
protected String |
getNumberedListBlock(String item)
Returns a NumberedList block generated by this sink. |
protected String |
getPageBreakBlock()
Returns a PageBreak block generated by this sink. |
protected String |
getParagraphBlock(String text)
Returns a Paragraph block generated by this sink. |
protected String |
getRawTextBlock(String text)
Returns a RawText 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 |
getSection3Block(String title)
Returns a Section3 block generated by this sink. |
protected String |
getSection4Block(String title)
Returns a Section4 block generated by this sink. |
protected String |
getSection5Block(String title)
Returns a Section5 block generated by this sink. |
protected String |
getSectionTitleBlock(String title)
Returns a SectionTitle block generated by this sink. |
protected String |
getTableBlock(String cell,
String caption)
Returns a Table block generated by this sink. |
protected String |
getTextBlock(String text)
Returns a Text block generated by this sink. |
protected String |
getTitleBlock(String title)
Returns a title block generated by this sink. |
protected String |
getVerbatimBlock(String text)
Returns a Verbatim block generated by this sink. |
protected boolean |
isXmlSink()
This method allows to use the correct Writer in AbstractSinkTest.testTestDocument() . |
protected String |
outputExtension()
Determines the default file extension for the current module. |
void |
testLinks()
Test link generation. |
void |
testTable()
Checks that the sequence [table(),
tableRows( Sink.JUSTIFY_CENTER, false ), tableRow(), tableCell(),
text( cell ), tableCell_(), tableRow_(), tableRows_(), tableCaption(),
text( caption ), tableCaption_(), table_()] ,
invoked on the current sink, produces the same result as
getTableBlock ( cell, caption ). |
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, 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 |
---|
public XhtmlSinkTest()
Method Detail |
---|
protected String outputExtension()
outputExtension
in class AbstractModuleTest
protected Sink createSink(Writer writer)
createSink
in class AbstractSinkTest
writer
- The writer for the sink.
protected boolean isXmlSink()
AbstractSinkTest.testTestDocument()
.
isXmlSink
in class AbstractSinkTest
true
if the Sink is an XML one, false
otherwise.AbstractSinkTest.testTestDocument()
public void testLinks() throws Exception
Exception
- if any.protected String getTitleBlock(String title)
getTitleBlock
in class AbstractSinkTest
title
- The title to use.
AbstractSinkTest.testTitle()
protected String getAuthorBlock(String author)
getAuthorBlock
in class AbstractSinkTest
author
- The author to use.
AbstractSinkTest.testAuthor()
protected String getDateBlock(String date)
getDateBlock
in class AbstractSinkTest
date
- The date to use.
AbstractSinkTest.testDate()
protected String getHeadBlock()
getHeadBlock
in class AbstractSinkTest
AbstractSinkTest.testHead()
protected String getBodyBlock()
getBodyBlock
in class AbstractSinkTest
AbstractSinkTest.testBody()
protected String getSectionTitleBlock(String title)
getSectionTitleBlock
in class AbstractSinkTest
title
- The title to use.
AbstractSinkTest.testSectionTitle()
protected String getSection1Block(String title)
getSection1Block
in class AbstractSinkTest
title
- The title to use.
AbstractSinkTest.testSection1()
protected String getSection2Block(String title)
getSection2Block
in class AbstractSinkTest
title
- The title to use.
AbstractSinkTest.testSection2()
protected String getSection3Block(String title)
getSection3Block
in class AbstractSinkTest
title
- The title to use.
AbstractSinkTest.testSection3()
protected String getSection4Block(String title)
getSection4Block
in class AbstractSinkTest
title
- The title to use.
AbstractSinkTest.testSection4()
protected String getSection5Block(String title)
getSection5Block
in class AbstractSinkTest
title
- The title to use.
AbstractSinkTest.testSection5()
protected String getListBlock(String item)
getListBlock
in class AbstractSinkTest
item
- The item to use.
AbstractSinkTest.testList()
protected String getNumberedListBlock(String item)
getNumberedListBlock
in class AbstractSinkTest
item
- The item to use.
AbstractSinkTest.testNumberedList()
protected String getDefinitionListBlock(String definum, String definition)
getDefinitionListBlock
in class AbstractSinkTest
definum
- The term to define.definition
- The definition.
AbstractSinkTest.testDefinitionList()
protected String getFigureBlock(String source, String caption)
getFigureBlock
in class AbstractSinkTest
source
- The figure source string.caption
- The caption to use (may be null).
AbstractSinkTest.testFigure()
protected String getTableBlock(String cell, String caption)
getTableBlock
in class AbstractSinkTest
cell
- A tabel cell to use.caption
- The caption to use (may be null).
AbstractSinkTest.testTable()
public void testTable()
[table(),
tableRows( Sink.JUSTIFY_CENTER, false ), tableRow(), tableCell(),
text( cell ), tableCell_(), tableRow_(), tableRows_(), tableCaption(),
text( caption ), tableCaption_(), table_()]
,
invoked on the current sink, produces the same result as
getTableBlock
( cell, caption ).
testTable
in class AbstractSinkTest
protected String getParagraphBlock(String text)
getParagraphBlock
in class AbstractSinkTest
text
- The text to use.
AbstractSinkTest.testParagraph()
protected String getVerbatimBlock(String text)
getVerbatimBlock
in class AbstractSinkTest
text
- The text to use.
AbstractSinkTest.testVerbatim()
protected String getHorizontalRuleBlock()
getHorizontalRuleBlock
in class AbstractSinkTest
AbstractSinkTest.testHorizontalRule()
protected String getPageBreakBlock()
getPageBreakBlock
in class AbstractSinkTest
AbstractSinkTest.testPageBreak()
protected String getAnchorBlock(String anchor)
getAnchorBlock
in class AbstractSinkTest
anchor
- The anchor to use.
AbstractSinkTest.testAnchor()
protected String getLinkBlock(String link, String text)
getLinkBlock
in class AbstractSinkTest
link
- The link to use.text
- The link text.
AbstractSinkTest.testLink()
protected String getItalicBlock(String text)
getItalicBlock
in class AbstractSinkTest
text
- The text to use.
AbstractSinkTest.testItalic()
protected String getBoldBlock(String text)
getBoldBlock
in class AbstractSinkTest
text
- The text to use.
AbstractSinkTest.testBold()
protected String getMonospacedBlock(String text)
getMonospacedBlock
in class AbstractSinkTest
text
- The text to use.
AbstractSinkTest.testMonospaced()
protected String getLineBreakBlock()
getLineBreakBlock
in class AbstractSinkTest
AbstractSinkTest.testLineBreak()
protected String getNonBreakingSpaceBlock()
getNonBreakingSpaceBlock
in class AbstractSinkTest
AbstractSinkTest.testNonBreakingSpace()
protected String getTextBlock(String text)
getTextBlock
in class AbstractSinkTest
text
- The text to use.
AbstractSinkTest.testText()
protected String getRawTextBlock(String text)
getRawTextBlock
in class AbstractSinkTest
text
- The text to use.
AbstractSinkTest.testRawText()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |