org.apache.maven.doxia.module.itext
Class ITextSinkTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.codehaus.plexus.PlexusTestCase
              extended by org.apache.maven.doxia.AbstractModuleTest
                  extended by org.apache.maven.doxia.module.itext.ITextSinkTestCase
All Implemented Interfaces:
junit.framework.Test, Markup

public class ITextSinkTestCase
extends AbstractModuleTest

iText Sink Test case.

Version:
$Id: ITextSinkTestCase.java 707984 2008-10-26 12:40:44Z vsiveton $
Author:
Vincent Siveton

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
ITextSinkTestCase()
           
 
Method Summary
protected  Sink createSink(Writer writer)
           
protected  File getGeneratedFile(String prefix, String suffix)
          Convenience method
protected  String getOutputDir()
          Returns the directory where test output will go.
protected  String outputExtension()
          Determines the default file extension for the current module.
 void testGeneratingPDFFromITextXml()
          Test PDF generation
 void testModel()
          Generate a pdf and a rtf from the standart test model.
 
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, setUp, 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

ITextSinkTestCase

public ITextSinkTestCase()
Method Detail

outputExtension

protected String outputExtension()
Determines the default file extension for the current module.

Specified by:
outputExtension in class AbstractModuleTest
Returns:
The default file extension.

getOutputDir

protected String getOutputDir()
Returns the directory where test output will go. Should be relative to outputBaseDir().

Specified by:
getOutputDir in class AbstractModuleTest
Returns:
The test output directory, relative to outputBaseDir().

getGeneratedFile

protected File getGeneratedFile(String prefix,
                                String suffix)
Convenience method

Parameters:
prefix -
suffix -
Returns:
the input file

createSink

protected Sink createSink(Writer writer)

testGeneratingPDFFromITextXml

public void testGeneratingPDFFromITextXml()
                                   throws Exception
Test PDF generation

Throws:
Exception

testModel

public void testModel()
               throws Exception
Generate a pdf and a rtf from the standart test model.

Throws:
Exception - if any


Copyright © 2005-2009 The Apache Software Foundation. All Rights Reserved.