|
||||||||||
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.twiki.TWikiSinkTest
public class TWikiSinkTest
Test the TWiki Sink
TWikiSink
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 | |
---|---|
TWikiSinkTest()
|
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)
Not used. |
protected String |
getBodyBlock()
Not used. |
protected String |
getBoldBlock(String text)
Returns a Bold block generated by this sink. |
protected String |
getDateBlock(String date)
Not used. |
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()
Not used. |
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)
Not used. |
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 |
testAuthor()
Not used. |
void |
testBody()
Not used. |
void |
testDate()
Not used. |
void |
testHead()
Not used. |
void |
testTitle()
Not used. |
Methods inherited from class org.apache.maven.doxia.sink.AbstractSinkTest |
---|
getOutputDir, getSink, getSinkContent, setUp, testAnchor, testBold, testDefinitionList, testFigure, testHorizontalRule, testItalic, testLineBreak, testLink, testList, testMonospaced, testNonBreakingSpace, testNumberedList, testPageBreak, testParagraph, testRawText, testSection1, testSection2, testSection3, testSection4, testSection5, testSectionTitle, testTable, testTestDocument, testText, 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 TWikiSinkTest()
Method Detail |
---|
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()
protected String getAnchorBlock(String anchor)
getAnchorBlock
in class AbstractSinkTest
anchor
- The anchor to use.
AbstractSinkTest.testAnchor()
protected String getAuthorBlock(String author)
getAuthorBlock
in class AbstractSinkTest
author
- The author to use.
AbstractSinkTest.testAuthor()
protected String getBodyBlock()
getBodyBlock
in class AbstractSinkTest
AbstractSinkTest.testBody()
protected String getBoldBlock(String text)
getBoldBlock
in class AbstractSinkTest
text
- The text to use.
AbstractSinkTest.testBold()
protected String getDateBlock(String date)
getDateBlock
in class AbstractSinkTest
date
- The date to use.
AbstractSinkTest.testDate()
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 getHeadBlock()
getHeadBlock
in class AbstractSinkTest
AbstractSinkTest.testHead()
protected String getHorizontalRuleBlock()
getHorizontalRuleBlock
in class AbstractSinkTest
AbstractSinkTest.testHorizontalRule()
protected String getItalicBlock(String text)
getItalicBlock
in class AbstractSinkTest
text
- The text to use.
AbstractSinkTest.testItalic()
protected String getLineBreakBlock()
getLineBreakBlock
in class AbstractSinkTest
AbstractSinkTest.testLineBreak()
protected String getLinkBlock(String link, String text)
getLinkBlock
in class AbstractSinkTest
link
- The link to use.text
- The link text.
AbstractSinkTest.testLink()
protected String getListBlock(String item)
getListBlock
in class AbstractSinkTest
item
- The item to use.
AbstractSinkTest.testList()
protected String getMonospacedBlock(String text)
getMonospacedBlock
in class AbstractSinkTest
text
- The text to use.
AbstractSinkTest.testMonospaced()
protected String getNonBreakingSpaceBlock()
getNonBreakingSpaceBlock
in class AbstractSinkTest
AbstractSinkTest.testNonBreakingSpace()
protected String getNumberedListBlock(String item)
getNumberedListBlock
in class AbstractSinkTest
item
- The item to use.
AbstractSinkTest.testNumberedList()
protected String getPageBreakBlock()
getPageBreakBlock
in class AbstractSinkTest
AbstractSinkTest.testPageBreak()
protected String getParagraphBlock(String text)
getParagraphBlock
in class AbstractSinkTest
text
- The text to use.
AbstractSinkTest.testParagraph()
protected String getRawTextBlock(String text)
getRawTextBlock
in class AbstractSinkTest
text
- The text to use.
AbstractSinkTest.testRawText()
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 getSectionTitleBlock(String title)
getSectionTitleBlock
in class AbstractSinkTest
title
- The title to use.
AbstractSinkTest.testSectionTitle()
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()
protected String getTextBlock(String text)
getTextBlock
in class AbstractSinkTest
text
- The text to use.
AbstractSinkTest.testText()
protected String getTitleBlock(String title)
getTitleBlock
in class AbstractSinkTest
title
- The title to use.
AbstractSinkTest.testTitle()
protected String getVerbatimBlock(String text)
getVerbatimBlock
in class AbstractSinkTest
text
- The text to use.
AbstractSinkTest.testVerbatim()
protected String outputExtension()
outputExtension
in class AbstractModuleTest
public void testAuthor()
[author(), text( author ), author_()]
, invoked on the current sink, produces the same result as
getAuthorBlock
( author ).
testAuthor
in class AbstractSinkTest
public void testDate()
[date(), text( date ), date_()]
,
invoked on the current sink, produces the same result as
getDateBlock
( date ).
testDate
in class AbstractSinkTest
public void testHead()
[head(), head_()]
,
invoked on the current sink, produces the same result as
getHeadBlock()
.
testHead
in class AbstractSinkTest
public void testBody()
[body(), body_()]
,
invoked on the current sink, produces the same result as
getBodyBlock()
.
testBody
in class AbstractSinkTest
public void testTitle()
[title(), text( title ), title_()]
,
invoked on the current sink, produces the same result as
getTitleBlock
( title ).
testTitle
in class AbstractSinkTest
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |