package net.knarcraft.bookswithoutborders; import net.knarcraft.bookswithoutborders.encryption.GenenCrypt; import org.junit.Test; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; public class GenenCryptTest { @Test public void encryptDecryptTest() { GenenCrypt gc = new GenenCrypt("Another Key"); gc.printCodonTable(); String encrypted = gc.encryptText("Hello World!"); assertNotNull(encrypted); assertEquals("HELLO WORLD!", gc.decryptText(encrypted)); } }