org.pentaho.di.core.encryption
Class EncrTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.pentaho.di.core.encryption.EncrTest
All Implemented Interfaces:
junit.framework.Test

public class EncrTest
extends junit.framework.TestCase

Test cases for encryption, to make sure that encrypted password remain the same between versions.

Author:
Sven Boden

Constructor Summary
EncrTest()
           
 
Method Summary
 void testDecryptPassword()
          Test password decryption.
 void testDecryptPasswordIfNotUsingVariables()
          Test password decryption (variable style).
 void testEncryptPassword()
          Test password encryption.
 void testEncryptPasswordIfNotUsingVariables()
          Test password encryption (variable style).
 
Methods inherited from class junit.framework.TestCase
countTestCases, getName, run, run, runBare, 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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EncrTest

public EncrTest()
Method Detail

testEncryptPassword

public void testEncryptPassword()
                         throws KettleValueException
Test password encryption.

Throws:
KettleValueException

testDecryptPassword

public void testDecryptPassword()
                         throws KettleValueException
Test password decryption.

Throws:
KettleValueException

testEncryptPasswordIfNotUsingVariables

public void testEncryptPasswordIfNotUsingVariables()
                                            throws KettleValueException
Test password encryption (variable style).

Throws:
KettleValueException

testDecryptPasswordIfNotUsingVariables

public void testDecryptPasswordIfNotUsingVariables()
                                            throws KettleValueException
Test password decryption (variable style).

Throws:
KettleValueException