|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.ujac.print.test.BasePrintTest
public class BasePrintTest
Name: BasePrintTests
Description: A base class for print tests.
| Field Summary | |
|---|---|
protected DocumentPrinter |
docPrinter
The document printer to use. |
protected Map |
docProperties
The document properties to use. |
protected FormatHelper |
formatHelper
The format helper to use. |
protected ResourceLoader |
resourceLoader
The resource loader. |
protected TemplateInterpreter |
templateInterpreter
The template interpreter to test. |
| Constructor Summary | |
|---|---|
BasePrintTest()
|
|
| Method Summary | |
|---|---|
protected void |
addTagTest(String tagId,
AbstractTagTest test)
Adds a single test to the test tag interceptor. |
protected void |
clearTagTests()
Adds a single test to the test tag interceptor. |
protected boolean |
isAllTagTestsPassed()
Tells, whether or not all test have been passed. |
protected void |
loadProperties(String location)
Loads the properties file from the given location. |
protected void |
printDocument(String destFile)
Prints the document to the given destination. |
protected void |
printDocument(String destFile,
boolean supportToc)
Prints the document to the given destination. |
protected void |
setTemplateSource(String location)
Sets the document template source. |
protected void |
setUp()
Sets up the test data. |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected TemplateInterpreter templateInterpreter
protected FormatHelper formatHelper
protected DocumentPrinter docPrinter
protected Map docProperties
protected ResourceLoader resourceLoader
| Constructor Detail |
|---|
public BasePrintTest()
| Method Detail |
|---|
protected void setUp()
throws Exception
setUp in class junit.framework.TestCaseException - In case a problem occured during the set up.
protected void setTemplateSource(String location)
throws IOException
location - The location of the document template file.
IOException - In case the document template file could not be opened.
protected void loadProperties(String location)
throws IOException
location - The location of the properties file to read.
IOException - In case the properties file could not be loaded.
protected void printDocument(String destFile)
throws DocumentHandlerException,
IOException
destFile - The destination file name.
DocumentHandlerException - If something went wrong at document handling.
IOException - In case something went wrong during output.
protected void printDocument(String destFile,
boolean supportToc)
throws DocumentHandlerException,
IOException
destFile - The destination file name.supportToc - Tells whether or not to support the output of a leading table of contents.
DocumentHandlerException - If something went wrong at document handling.
IOException - In case something went wrong during output.
protected void addTagTest(String tagId,
AbstractTagTest test)
tagId - The ID of the tag to test.test - The test to perform.protected void clearTagTests()
tagId - The ID of the tag to test.test - The test to perform.protected boolean isAllTagTestsPassed()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||