test.pdfbox.encryption
Class TestEncryption

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

public class TestEncryption
extends junit.framework.TestCase

This will test the encryption algorithms in PDFBox.

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

Constructor Summary
TestEncryption(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 testEncryption()
          This will test some simple encryption.
 
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

TestEncryption

public TestEncryption(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.

testEncryption

public void testEncryption()
                    throws Exception
This will test some simple encryption.

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


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