org.acegisecurity.util
Class EncryptionUtilsTests

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.acegisecurity.util.EncryptionUtilsTests
All Implemented Interfaces:
junit.framework.Test

public class EncryptionUtilsTests
extends junit.framework.TestCase

JUnit tests for EncryptionUtils.

Version:
$Id: EncryptionUtilsTests.java 1784 2007-02-24 21:00:24Z luke_t $
Author:
Alan Stewart, Ben Alex

Constructor Summary
EncryptionUtilsTests()
           
 
Method Summary
 void teastFailEncryptWithShortEncryptionKey()
           
 void testDecryptByteArrayUsingDESEde()
           
 void testDecryptsUsingDESEde()
           
 void testEncryptAndDecrypt()
           
 void testEncryptByteArrayUsingDESEde()
           
 void testEncryptionKeyCanContainLetters()
           
 void testEncryptsUsingDESEde()
           
 void testFailDecryptWithEmptyString()
           
 void testFailEncryptWithEmptyEncryptionKey()
           
 void testFailEncryptWithEmptyString()
           
 void testFailEncryptWithNullEncryptionKey()
           
 void testFailEncryptWithNullString()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EncryptionUtilsTests

public EncryptionUtilsTests()
Method Detail

testEncryptsUsingDESEde

public void testEncryptsUsingDESEde()
                             throws org.acegisecurity.util.EncryptionUtils.EncryptionException
Throws:
org.acegisecurity.util.EncryptionUtils.EncryptionException

testEncryptByteArrayUsingDESEde

public void testEncryptByteArrayUsingDESEde()

testEncryptionKeyCanContainLetters

public void testEncryptionKeyCanContainLetters()
                                        throws org.acegisecurity.util.EncryptionUtils.EncryptionException
Throws:
org.acegisecurity.util.EncryptionUtils.EncryptionException

testDecryptsUsingDESEde

public void testDecryptsUsingDESEde()
                             throws org.acegisecurity.util.EncryptionUtils.EncryptionException
Throws:
org.acegisecurity.util.EncryptionUtils.EncryptionException

testDecryptByteArrayUsingDESEde

public void testDecryptByteArrayUsingDESEde()

testFailEncryptWithNullEncryptionKey

public void testFailEncryptWithNullEncryptionKey()

testFailEncryptWithEmptyEncryptionKey

public void testFailEncryptWithEmptyEncryptionKey()

teastFailEncryptWithShortEncryptionKey

public void teastFailEncryptWithShortEncryptionKey()

testFailDecryptWithEmptyString

public void testFailDecryptWithEmptyString()

testFailEncryptWithEmptyString

public void testFailEncryptWithEmptyString()

testFailEncryptWithNullString

public void testFailEncryptWithNullString()

testEncryptAndDecrypt

public void testEncryptAndDecrypt()
                           throws org.acegisecurity.util.EncryptionUtils.EncryptionException
Throws:
org.acegisecurity.util.EncryptionUtils.EncryptionException


Copyright © 2004-2008 Interface21, Inc. All Rights Reserved.