org.alfresco.deployment.transformers
Class SampleEncryptionTransformerTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.alfresco.deployment.transformers.SampleEncryptionTransformerTest
All Implemented Interfaces:
junit.framework.Test

public class SampleEncryptionTransformerTest
extends junit.framework.TestCase

Tests of the EncryptionTransformer

See Also:
CompressionTransformer

Constructor Summary
SampleEncryptionTransformerTest(java.lang.String name)
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testAddFilter()
          Test method for org.alfresco.deployment.transformers.EncryptionTransformer#addFilter(java.io.OutputStream, org.alfresco.deployment.DeploymentTransportTransformer.Direction, java.lang.String).
 void testEncryptDecryptBigMessage()
          End to end test.
 void testEncryptDecryptManySends()
          End to end test.
 void testSetProperties()
           
 void testWrongPassword()
          Test method for org.alfresco.deployment.transformers.EncryptionTransformer#addFilter(java.io.OutputStream, org.alfresco.deployment.DeploymentTransportTransformer.Direction, java.lang.String).
 
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, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SampleEncryptionTransformerTest

public SampleEncryptionTransformerTest(java.lang.String name)
Parameters:
name -
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception

testSetProperties

public void testSetProperties()

testAddFilter

public void testAddFilter()
Test method for org.alfresco.deployment.transformers.EncryptionTransformer#addFilter(java.io.OutputStream, org.alfresco.deployment.DeploymentTransportTransformer.Direction, java.lang.String). This test compresses a message with one transformation. Then sends the results through another instance to give us plain text again.


testEncryptDecryptBigMessage

public void testEncryptDecryptBigMessage()
End to end test. This test passes a big message through encryption and decryption.


testEncryptDecryptManySends

public void testEncryptDecryptManySends()
End to end test. This test tests buffering by ensuring that many sends are processed correctly.


testWrongPassword

public void testWrongPassword()
Test method for org.alfresco.deployment.transformers.EncryptionTransformer#addFilter(java.io.OutputStream, org.alfresco.deployment.DeploymentTransportTransformer.Direction, java.lang.String). This test compresses a message with one password. Then sends the results through another instance but with a different password.



Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.