|
||||||||||
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.book.services.renderer.docbook.DocBookBookSinkTest
public class DocBookBookSinkTest
Test the book path of the DockBook sink
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 | |
---|---|
DocBookBookSinkTest()
|
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 |
getBookAuthorBlock(String author)
Returns an author block generated by this sink. |
protected String |
getBookBlock()
Returns a body block generated by this sink. |
protected String |
getBookDateBlock(String date)
Returns a date block generated by this sink. |
protected String |
getBookHeadBlock()
Returns a head block generated by this sink. |
protected String |
getBookTitleBlock(String title)
Returns a title block generated by this sink. |
protected String |
getChapterBlock()
Returns a Section1 block generated by this sink. |
protected String |
getChapterTitleBlock(String title)
Returns a SectionTitle block generated by this sink. |
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 |
testBook()
Checks that the sequence [book(), book_()] ,
invoked on the current sink, produces the same result as
getBookBlock() . |
void |
testBookAuthor()
Checks that the sequence [bookAuthor(), text( author ), bookAuthor_()]
, invoked on the current sink, produces the same result as
getBookAuthorBlock ( author ). |
void |
testBookDate()
Checks that the sequence [bookDate(), text( date ), bookDate_()] ,
invoked on the current sink, produces the same result as
getBookDateBlock ( date ). |
void |
testBookHead()
Checks that the sequence [bookHead(), bookHead_()] ,
invoked on the current sink, produces the same result as
getBookHeadBlock() . |
void |
testBookTitle()
Checks that the sequence [bookTitle(), text( title ), bookTitle_()] ,
invoked on the current sink, produces the same result as
getBookTitleBlock ( title ). |
void |
testChapter()
Checks that the sequence [chapter(), chapter_()] ,
invoked on the current sink, produces the same result as
getChapterBlock (). |
void |
testChapterTitle()
Checks that the sequence [chapterTitle(), text( title ),
chapterTitle_()] , invoked on the current sink, produces
the same result as
getChapterTitleBlock ( title ). |
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 |
---|
public DocBookBookSinkTest()
Method Detail |
---|
protected boolean isXmlSink()
isXmlSink
in class org.apache.maven.doxia.sink.AbstractSinkTest
protected String outputExtension()
outputExtension
in class org.apache.maven.doxia.AbstractModuleTest
protected org.apache.maven.doxia.sink.Sink createSink(Writer writer)
createSink
in class org.apache.maven.doxia.sink.AbstractSinkTest
public void testBookTitle()
[bookTitle(), text( title ), bookTitle_()]
,
invoked on the current sink, produces the same result as
getBookTitleBlock
( title ).
NewLines are ignored.
public void testBookAuthor()
[bookAuthor(), text( author ), bookAuthor_()]
, invoked on the current sink, produces the same result as
getBookAuthorBlock
( author ).
NewLines are ignored.
public void testBookDate()
[bookDate(), text( date ), bookDate_()]
,
invoked on the current sink, produces the same result as
getBookDateBlock
( date ). NewLines are ignored.
public void testBookHead()
[bookHead(), bookHead_()]
,
invoked on the current sink, produces the same result as
getBookHeadBlock()
. NewLines are ignored.
public void testBook()
[book(), book_()]
,
invoked on the current sink, produces the same result as
getBookBlock()
. NewLines are ignored.
public void testChapterTitle()
[chapterTitle(), text( title ),
chapterTitle_()]
, invoked on the current sink, produces
the same result as
getChapterTitleBlock
( title ).
NewLines are ignored.
public void testChapter()
[chapter(), chapter_()]
,
invoked on the current sink, produces the same result as
getChapterBlock
().
NewLines are ignored.
protected String getBookTitleBlock(String title)
title
- The title to use.
testBookTitle()
protected String getBookAuthorBlock(String author)
author
- The author to use.
testBookAuthor()
protected String getBookDateBlock(String date)
date
- The date to use.
testBookDate()
protected String getBookHeadBlock()
testBookHead()
protected String getBookBlock()
testBook()
protected String getChapterTitleBlock(String title)
title
- The title to use.
testChapterTitle()
protected String getChapterBlock()
title
- The title to use.
testChapter()
protected String getTitleBlock(String title)
getTitleBlock
in class org.apache.maven.doxia.sink.AbstractSinkTest
protected String getAuthorBlock(String author)
getAuthorBlock
in class org.apache.maven.doxia.sink.AbstractSinkTest
protected String getDateBlock(String date)
getDateBlock
in class org.apache.maven.doxia.sink.AbstractSinkTest
protected String getHeadBlock()
getHeadBlock
in class org.apache.maven.doxia.sink.AbstractSinkTest
protected String getBodyBlock()
getBodyBlock
in class org.apache.maven.doxia.sink.AbstractSinkTest
protected String getSectionTitleBlock(String title)
getSectionTitleBlock
in class org.apache.maven.doxia.sink.AbstractSinkTest
protected String getSection1Block(String title)
getSection1Block
in class org.apache.maven.doxia.sink.AbstractSinkTest
protected String getSection2Block(String title)
getSection2Block
in class org.apache.maven.doxia.sink.AbstractSinkTest
protected String getSection3Block(String title)
getSection3Block
in class org.apache.maven.doxia.sink.AbstractSinkTest
protected String getSection4Block(String title)
getSection4Block
in class org.apache.maven.doxia.sink.AbstractSinkTest
protected String getSection5Block(String title)
getSection5Block
in class org.apache.maven.doxia.sink.AbstractSinkTest
protected String getListBlock(String item)
getListBlock
in class org.apache.maven.doxia.sink.AbstractSinkTest
protected String getNumberedListBlock(String item)
getNumberedListBlock
in class org.apache.maven.doxia.sink.AbstractSinkTest
protected String getDefinitionListBlock(String definum, String definition)
getDefinitionListBlock
in class org.apache.maven.doxia.sink.AbstractSinkTest
protected String getFigureBlock(String source, String caption)
getFigureBlock
in class org.apache.maven.doxia.sink.AbstractSinkTest
protected String getTableBlock(String cell, String caption)
getTableBlock
in class org.apache.maven.doxia.sink.AbstractSinkTest
protected String getParagraphBlock(String text)
getParagraphBlock
in class org.apache.maven.doxia.sink.AbstractSinkTest
protected String getVerbatimBlock(String text)
getVerbatimBlock
in class org.apache.maven.doxia.sink.AbstractSinkTest
protected String getHorizontalRuleBlock()
getHorizontalRuleBlock
in class org.apache.maven.doxia.sink.AbstractSinkTest
protected String getPageBreakBlock()
getPageBreakBlock
in class org.apache.maven.doxia.sink.AbstractSinkTest
protected String getAnchorBlock(String anchor)
getAnchorBlock
in class org.apache.maven.doxia.sink.AbstractSinkTest
protected String getLinkBlock(String link, String text)
getLinkBlock
in class org.apache.maven.doxia.sink.AbstractSinkTest
protected String getItalicBlock(String text)
getItalicBlock
in class org.apache.maven.doxia.sink.AbstractSinkTest
protected String getBoldBlock(String text)
getBoldBlock
in class org.apache.maven.doxia.sink.AbstractSinkTest
protected String getMonospacedBlock(String text)
getMonospacedBlock
in class org.apache.maven.doxia.sink.AbstractSinkTest
protected String getLineBreakBlock()
getLineBreakBlock
in class org.apache.maven.doxia.sink.AbstractSinkTest
protected String getNonBreakingSpaceBlock()
getNonBreakingSpaceBlock
in class org.apache.maven.doxia.sink.AbstractSinkTest
protected String getTextBlock(String text)
getTextBlock
in class org.apache.maven.doxia.sink.AbstractSinkTest
protected String getRawTextBlock(String text)
getRawTextBlock
in class org.apache.maven.doxia.sink.AbstractSinkTest
protected String getCommentBlock(String text)
getCommentBlock
in class org.apache.maven.doxia.sink.AbstractSinkTest
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |