|
||||||||||
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.ujac.print.test.BasePrintTest org.ujac.print.test.DocumentPrinterTest
public class DocumentPrinterTest
Name: DocumentPrinterTest
Description: Common test cases for the document printer.
Some of these test cases only check whether the PDF generation work,
they do not prove the correctness of the results! Other test cases
are performing automated tests, based on the DocumentTagInterceptor
concept.
Nested Class Summary | |
---|---|
class |
DocumentPrinterTest.ChartTestTuple
Name: ChartTestTuple Description: A class for chart test values. |
class |
DocumentPrinterTest.Person
Name: Person Description: Test bean. |
Field Summary |
---|
Fields inherited from class org.ujac.print.test.BasePrintTest |
---|
docPrinter, docProperties, formatHelper, resourceLoader, templateInterpreter |
Constructor Summary | |
---|---|
DocumentPrinterTest()
|
Method Summary | |
---|---|
protected void |
setUp()
Sets up the test data. |
void |
testAcroForm()
Tests AcroForm output. |
void |
testAnchor()
Tests anchor handling. |
void |
testBarcode()
Tests barcode output. |
void |
testChartInstance()
Tests chart instance output. |
void |
testCharts()
Tests chart output. |
void |
testColor()
Tests color handling. |
void |
testColumnText()
Tests column text usage. |
void |
testConditions()
Tests conditional tag evaluation. |
void |
testCustomTags()
Tests custom tag handling. |
void |
testDefineTable()
Tests the <define-table> tag. |
void |
testEncryption()
Tests usage of document encryption. |
void |
testFont()
Tests font handling. |
void |
testGraphics()
Tests graphic output. |
void |
testHeaderFooter()
Tests header/footer usage. |
void |
testI18n()
Tests internationalization. |
void |
testImages()
Tests image output. |
void |
testList()
Tests list output. |
void |
testLog()
Tests log output. |
void |
testOverlay()
Tests usage of overlays. |
void |
testSection()
Tests chapter and section output. |
void |
testSegments()
Tests handling of segments. |
void |
testSetFormat()
Tests the <set-format> tag. |
void |
testSetProperty()
Tests the <set-property> tag. |
void |
testSpecialCharacters()
Tests the <set-format> tag. |
void |
testSticky()
Tests handling of sticky tags. |
void |
testStyle()
Tests the <style-def> tag. |
void |
testToc()
Tests TOC handling. |
void |
testVerticalSpacing()
Tests handling of vertical spacings. |
void |
testViewerPreferences()
Tests usage of viewer preferences. |
void |
testWatermark()
Tests usage of watermarks. |
void |
testWhitespaces()
Tests whitespace handling output. |
Methods inherited from class org.ujac.print.test.BasePrintTest |
---|
addTagTest, clearTagTests, isAllTagTestsPassed, loadProperties, printDocument, printDocument, setTemplateSource |
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 |
Constructor Detail |
---|
public DocumentPrinterTest()
Method Detail |
---|
protected void setUp() throws Exception
setUp
in class BasePrintTest
Exception
- In case a problem occured during the set up.public void testBarcode() throws DocumentHandlerException, IOException
DocumentHandlerException
- If something went wrong at document handling.
IOException
- In case something went wrong during output.public void testImages() throws DocumentHandlerException, IOException, com.lowagie.text.BadElementException
DocumentHandlerException
- If something went wrong at document handling.
IOException
- In case something went wrong during output.
com.lowagie.text.BadElementException
- In case the Jpeg handling failed.public void testOverlay() throws DocumentHandlerException, IOException
DocumentHandlerException
- If something went wrong at document handling.
IOException
- In case something went wrong during output.public void testCharts() throws DocumentHandlerException, IOException
DocumentHandlerException
- If something went wrong at document handling.
IOException
- In case something went wrong during output.public void testChartInstance() throws DocumentHandlerException, IOException, ChartException
DocumentHandlerException
- If something went wrong at document handling.
IOException
- In case something went wrong during output.
ChartException
- In case the chart processing failed.public void testWhitespaces() throws DocumentHandlerException, IOException
DocumentHandlerException
- If something went wrong at document handling.
IOException
- In case something went wrong during output.public void testFont() throws DocumentHandlerException, IOException
DocumentHandlerException
- If something went wrong at document handling.
IOException
- In case something went wrong during output.public void testHeaderFooter() throws DocumentHandlerException, IOException
DocumentHandlerException
- If something went wrong at document handling.
IOException
- In case something went wrong during output.public void testList() throws DocumentHandlerException, IOException
DocumentHandlerException
- If something went wrong at document handling.
IOException
- In case something went wrong during output.public void testI18n() throws DocumentHandlerException, IOException
DocumentHandlerException
- If something went wrong at document handling.
IOException
- In case something went wrong during output.public void testCustomTags() throws DocumentHandlerException, IOException
DocumentHandlerException
- If something went wrong at document handling.
IOException
- In case something went wrong during output.public void testAnchor() throws DocumentHandlerException, IOException
DocumentHandlerException
- If something went wrong at document handling.
IOException
- In case something went wrong during output.public void testSection() throws DocumentHandlerException, IOException
DocumentHandlerException
- If something went wrong at document handling.
IOException
- In case something went wrong during output.public void testColumnText() throws DocumentHandlerException, IOException
DocumentHandlerException
- If something went wrong at document handling.
IOException
- In case something went wrong during output.public void testToc() throws DocumentHandlerException, IOException
DocumentHandlerException
- If something went wrong at document handling.
IOException
- In case something went wrong during output.public void testAcroForm() throws DocumentHandlerException, IOException
DocumentHandlerException
- If something went wrong at document handling.
IOException
- In case something went wrong during output.public void testGraphics() throws DocumentHandlerException, IOException
DocumentHandlerException
- If something went wrong at document handling.
IOException
- In case something went wrong during output.public void testVerticalSpacing() throws DocumentHandlerException, IOException
DocumentHandlerException
- If something went wrong at document handling.
IOException
- In case something went wrong during output.public void testColor() throws DocumentHandlerException, IOException
DocumentHandlerException
- If something went wrong at document handling.
IOException
- In case something went wrong during output.public void testSticky() throws DocumentHandlerException, IOException
DocumentHandlerException
- If something went wrong at document handling.
IOException
- In case something went wrong during output.public void testViewerPreferences() throws DocumentHandlerException, IOException
DocumentHandlerException
- If something went wrong at document handling.
IOException
- In case something went wrong during output.public void testSegments() throws DocumentHandlerException, IOException
DocumentHandlerException
- If something went wrong at document handling.
IOException
- In case something went wrong during output.public void testEncryption() throws DocumentHandlerException, IOException
DocumentHandlerException
- If something went wrong at document handling.
IOException
- In case something went wrong during output.public void testWatermark() throws DocumentHandlerException, IOException
DocumentHandlerException
- If something went wrong at document handling.
IOException
- In case something went wrong during output.public void testLog() throws DocumentHandlerException, IOException
DocumentHandlerException
- If something went wrong at document handling.
IOException
- In case something went wrong during output.public void testDefineTable() throws DocumentHandlerException, IOException
DocumentHandlerException
- If something went wrong at document handling.
IOException
- In case something went wrong during output.public void testStyle() throws DocumentHandlerException, IOException
DocumentHandlerException
- If something went wrong at document handling.
IOException
- In case something went wrong during output.public void testSetFormat() throws DocumentHandlerException, IOException, ParseException, TableException
DocumentHandlerException
- If something went wrong at document handling.
ParseException
- In case a date could not be parsed.
IOException
- In case something went wrong during output.
TableException
- In case a table processing error occurred.public void testSetProperty() throws DocumentHandlerException, IOException, ParseException, TableException
DocumentHandlerException
- If something went wrong at document handling.
ParseException
- In case a date could not be parsed.
IOException
- In case something went wrong during output.
TableException
- In case a table processing error occurred.public void testSpecialCharacters() throws DocumentHandlerException, IOException
DocumentHandlerException
- If something went wrong at document handling.
IOException
- In case something went wrong during output.public void testConditions() throws DocumentHandlerException, IOException
DocumentHandlerException
- If something went wrong at document handling.
IOException
- In case something went wrong during output.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |