test.pdfbox.pdmodel
Class TestFDF

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by test.pdfbox.pdmodel.TestFDF
All Implemented Interfaces:
junit.framework.Test

public class TestFDF
extends junit.framework.TestCase

This will test the FDF algorithms in PDFBox.

Version:
$Revision: 1.5 $
Author:
Ben Litchfield (ben@csh.rit.edu)

Constructor Summary
TestFDF(String name)
          Constructor.
 
Method Summary
static void main(String[] args)
          infamous main method.
static junit.framework.Test suite()
          This will get the suite of test that this class holds.
 void testFDFfdeb()
          This will test some simple field setting.
 void testFDFFreedomExpressions()
          This will test the Freedom pdf.
 void testFDFPDFWithLotsOfFields()
          This will test a pdf with lots of fields.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, 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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestFDF

public TestFDF(String name)
Constructor.

Parameters:
name - The name of the test to run.
Method Detail

suite

public static junit.framework.Test suite()
This will get the suite of test that this class holds.

Returns:
All of the tests that this class holds.

main

public static void main(String[] args)
infamous main method.

Parameters:
args - The command line arguments.

testFDFfdeb

public void testFDFfdeb()
                 throws Exception
This will test some simple field setting.

Throws:
Exception - If there is an exception while encrypting.

testFDFPDFWithLotsOfFields

public void testFDFPDFWithLotsOfFields()
                                throws Exception
This will test a pdf with lots of fields.

Throws:
Exception - If there is an exception while encrypting.

testFDFFreedomExpressions

public void testFDFFreedomExpressions()
                               throws Exception
This will test the Freedom pdf.

Throws:
Exception - If there is an error while testing.


Copyright © 2006-2007 EGIZ - E-Government Innovationszentrum. All Rights Reserved.