Created
September 22, 2011 13:20
-
-
Save RichardHJensen/1234750 to your computer and use it in GitHub Desktop.
Made the steps in the initial test a bit more explicit.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AESEncryptorTest { | |
private final AESEncryptor aesExample = new AESEncryptor(); | |
private static String SAMPLE_TEXT = "Original Plaintext"; | |
@Test | |
public void decryptingCiphertextShouldReturnOriginalPlaintext() throws Exception { | |
String cipherText = aesExample.encrypt(SAMPLE_TEXT); | |
String plainText = aesExample.decrypt(cipherText); | |
assertEquals(SAMPLE_TEXT, plainText); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment