Improves in-game command documentation
All checks were successful
EpicKnarvik97/Books-Without-Borders/pipeline/head This commit looks good

This commit is contained in:
2025-08-18 01:50:52 +02:00
parent cd9255c97a
commit 6adec89ae1
20 changed files with 420 additions and 214 deletions

View File

@@ -0,0 +1,23 @@
package net.knarcraft.bookswithoutborders.encryption;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotEquals;
import static org.junit.Assert.assertNotNull;
public class MagicTest {
@Test
public void magicEncryptionDecryptionTest() {
String plaintext = "Super secret text!";
Magic magic = new Magic();
String cipherText = magic.encryptText(plaintext);
assertNotNull(cipherText);
assertNotEquals(plaintext, cipherText);
String decrypted = magic.decryptText(cipherText);
assertNotNull(decrypted);
assertEquals(plaintext, decrypted);
}
}