18 lines
404 B
Java
18 lines
404 B
Java
package net.knarcraft.bookswithoutborders;
|
|
|
|
import org.junit.Test;
|
|
|
|
import static org.junit.Assert.assertEquals;
|
|
|
|
public class GenenCryptTest {
|
|
|
|
@Test
|
|
public void encryptDecryptTest() {
|
|
GenenCrypt gc = new GenenCrypt("Another Key");
|
|
gc.printCodonTable();
|
|
String encrypted = gc.encrypt("Hello World!");
|
|
assertEquals("HELLO WORLD!", gc.decrypt(encrypted));
|
|
}
|
|
|
|
}
|