Created
September 22, 2011 13:53
-
-
Save RichardHJensen/1234818 to your computer and use it in GitHub Desktop.
The second test
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
@Test | |
public void encryptingTheSameStringShouldGiveTheSameCiphertext() throws Exception { | |
String cipherText1 = aesExample.encrypt(SAMPLE_TEXT); | |
String cipherText2 = new AESEncryptor().encrypt(SAMPLE_TEXT); | |
assertEquals(cipherText1, cipherText2); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment