From a3598a32ae30ab1c697a1b87b5ca4178bc46d809 Mon Sep 17 00:00:00 2001 From: Matthew Ellison Date: Wed, 17 Apr 2024 10:10:19 -0400 Subject: [PATCH] Update integration tests --- .../AdfgvxCipherControllerIntegrationTest.java | 10 +++++----- .../AdfgxCipherControllerIntegrationTest.java | 10 +++++----- .../AffineCipherControllerIntegrationTest.java | 8 ++++---- .../AtbashCipherControllerIntegrationTest.java | 8 ++++---- .../AutokeyCipherControllerIntegrationTest.java | 8 ++++---- .../BaconianCipherControllerIntegrationTest.java | 8 ++++---- .../BaseXCipherControllerIntegrationTest.java | 8 ++++---- .../BeaufortCipherControllerIntegrationTest.java | 8 ++++---- .../CaesarCipherControllerIntegrationTest.java | 8 ++++---- .../OneTimePadCipherControllerIntegrationTest.java | 8 ++++---- .../PortaCipherControllerIntegrationTest.java | 8 ++++---- .../SubstitutionCipherControllerIntegrationTest.java | 8 ++++---- .../VigenereCipherControllerIntegrationTest.java | 8 ++++---- .../BifidCipherControllerIntegrationTest.java | 8 ++++---- .../ColumnarCipherControllerIntegrationTest.java | 8 ++++---- .../HillCipherControllerIntegrationTest.java | 8 ++++---- .../MorseCodeControllerIntegrationTest.java | 8 ++++---- .../PlayfairCipherControllerIntegrationTest.java | 8 ++++---- .../PolybiusSquareControllerIntegrationTest.java | 8 ++++---- .../RailFenceControllerIntegrationTest.java | 8 ++++---- .../TrifidCipherControllerIntegrationTest.java | 8 ++++---- 21 files changed, 86 insertions(+), 86 deletions(-) diff --git a/src/test/java/com/mattrixwv/cipherstream/controller/combination/AdfgvxCipherControllerIntegrationTest.java b/src/test/java/com/mattrixwv/cipherstream/controller/combination/AdfgvxCipherControllerIntegrationTest.java index 841aec8..6390eb3 100644 --- a/src/test/java/com/mattrixwv/cipherstream/controller/combination/AdfgvxCipherControllerIntegrationTest.java +++ b/src/test/java/com/mattrixwv/cipherstream/controller/combination/AdfgvxCipherControllerIntegrationTest.java @@ -31,7 +31,7 @@ public class AdfgvxCipherControllerIntegrationTest extends CipherStreamControlle @Mock(name = "com.mattrixwv.cipherstream.controller.combination.AdfgvxCipherController") private Logger adfgvxLogger; //Fields - private String url = "/adfgvx"; + private String url = "/cipherStream/adfgvx"; private String decodedString = "Message to^encode"; private String encodedString = "AXgvdavfxgagfa afag^aaxdxfgdagda"; private String keyword = "keyword"; @@ -84,7 +84,7 @@ public class AdfgvxCipherControllerIntegrationTest extends CipherStreamControlle @Test public void testEncodeAdfgvx() throws Exception{ - mockMvc.perform(get(url + "/encode") + mockMvc.perform(post(url + "/encode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -104,7 +104,7 @@ public class AdfgvxCipherControllerIntegrationTest extends CipherStreamControlle @Test public void testEncodeAdfgvx_error() throws Exception{ - mockMvc.perform(get(url + "/encode") + mockMvc.perform(post(url + "/encode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -124,7 +124,7 @@ public class AdfgvxCipherControllerIntegrationTest extends CipherStreamControlle @Test public void testDecodeAdfgvx() throws Exception{ - mockMvc.perform(get(url + "/decode") + mockMvc.perform(post(url + "/decode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -144,7 +144,7 @@ public class AdfgvxCipherControllerIntegrationTest extends CipherStreamControlle @Test public void testDecodeAdfgvx_error() throws Exception{ - mockMvc.perform(get(url + "/decode") + mockMvc.perform(post(url + "/decode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) diff --git a/src/test/java/com/mattrixwv/cipherstream/controller/combination/AdfgxCipherControllerIntegrationTest.java b/src/test/java/com/mattrixwv/cipherstream/controller/combination/AdfgxCipherControllerIntegrationTest.java index 4553d14..303cd1a 100644 --- a/src/test/java/com/mattrixwv/cipherstream/controller/combination/AdfgxCipherControllerIntegrationTest.java +++ b/src/test/java/com/mattrixwv/cipherstream/controller/combination/AdfgxCipherControllerIntegrationTest.java @@ -31,7 +31,7 @@ public class AdfgxCipherControllerIntegrationTest extends CipherStreamController @Mock(name = "com.mattrixwv.cipherstream.controller.combination.AdfgxCipherController") private Logger adfgxLogger; //Fields - private String url = "/adfgx"; + private String url = "/cipherStream/adfgx"; private String decodedString = "Message to^encode"; private String encodedString = "AAgagadfagaxxd axdx^adafafxddgdf"; private String keyword = "keyword"; @@ -84,7 +84,7 @@ public class AdfgxCipherControllerIntegrationTest extends CipherStreamController @Test public void testEncodeAdfgx() throws Exception{ - mockMvc.perform(get(url + "/encode") + mockMvc.perform(post(url + "/encode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -104,7 +104,7 @@ public class AdfgxCipherControllerIntegrationTest extends CipherStreamController @Test public void testEncodeAdfgx_error() throws Exception{ - mockMvc.perform(get(url + "/encode") + mockMvc.perform(post(url + "/encode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -124,7 +124,7 @@ public class AdfgxCipherControllerIntegrationTest extends CipherStreamController @Test public void testDecodeAdfgx() throws Exception{ - mockMvc.perform(get(url + "/decode") + mockMvc.perform(post(url + "/decode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -144,7 +144,7 @@ public class AdfgxCipherControllerIntegrationTest extends CipherStreamController @Test public void testDecodeAdfgvx_error() throws Exception{ - mockMvc.perform(get(url + "/decode") + mockMvc.perform(post(url + "/decode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) diff --git a/src/test/java/com/mattrixwv/cipherstream/controller/monosubstitution/AffineCipherControllerIntegrationTest.java b/src/test/java/com/mattrixwv/cipherstream/controller/monosubstitution/AffineCipherControllerIntegrationTest.java index 5fc0777..73a2797 100644 --- a/src/test/java/com/mattrixwv/cipherstream/controller/monosubstitution/AffineCipherControllerIntegrationTest.java +++ b/src/test/java/com/mattrixwv/cipherstream/controller/monosubstitution/AffineCipherControllerIntegrationTest.java @@ -84,7 +84,7 @@ public class AffineCipherControllerIntegrationTest extends CipherStreamControlle @Test public void testEncodeAffine() throws Exception{ - mockMvc.perform(get(url + "/encode") + mockMvc.perform(post(url + "/encode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -104,7 +104,7 @@ public class AffineCipherControllerIntegrationTest extends CipherStreamControlle @Test public void testEncodeAffine_error() throws Exception{ - mockMvc.perform(get(url + "/encode") + mockMvc.perform(post(url + "/encode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -124,7 +124,7 @@ public class AffineCipherControllerIntegrationTest extends CipherStreamControlle @Test public void testDecodeAffine() throws Exception{ - mockMvc.perform(get(url + "/decode") + mockMvc.perform(post(url + "/decode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -144,7 +144,7 @@ public class AffineCipherControllerIntegrationTest extends CipherStreamControlle @Test public void testDecodeAffine_error() throws Exception{ - mockMvc.perform(get(url + "/decode") + mockMvc.perform(post(url + "/decode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) diff --git a/src/test/java/com/mattrixwv/cipherstream/controller/monosubstitution/AtbashCipherControllerIntegrationTest.java b/src/test/java/com/mattrixwv/cipherstream/controller/monosubstitution/AtbashCipherControllerIntegrationTest.java index ca35a5a..afd59e7 100644 --- a/src/test/java/com/mattrixwv/cipherstream/controller/monosubstitution/AtbashCipherControllerIntegrationTest.java +++ b/src/test/java/com/mattrixwv/cipherstream/controller/monosubstitution/AtbashCipherControllerIntegrationTest.java @@ -78,7 +78,7 @@ public class AtbashCipherControllerIntegrationTest extends CipherStreamControlle @Test public void testEncodeAtbash() throws Exception{ - mockMvc.perform(get(url + "/encode") + mockMvc.perform(post(url + "/encode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -98,7 +98,7 @@ public class AtbashCipherControllerIntegrationTest extends CipherStreamControlle @Test public void testEncodeAtbash_error() throws Exception{ - mockMvc.perform(get(url + "/encode") + mockMvc.perform(post(url + "/encode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -118,7 +118,7 @@ public class AtbashCipherControllerIntegrationTest extends CipherStreamControlle @Test public void testDecodeAtbash() throws Exception{ - mockMvc.perform(get(url + "/decode") + mockMvc.perform(post(url + "/decode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -138,7 +138,7 @@ public class AtbashCipherControllerIntegrationTest extends CipherStreamControlle @Test public void testDecodeAtbash_error() throws Exception{ - mockMvc.perform(get(url + "/decode") + mockMvc.perform(post(url + "/decode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) diff --git a/src/test/java/com/mattrixwv/cipherstream/controller/monosubstitution/AutokeyCipherControllerIntegrationTest.java b/src/test/java/com/mattrixwv/cipherstream/controller/monosubstitution/AutokeyCipherControllerIntegrationTest.java index 1af894a..44b1a17 100644 --- a/src/test/java/com/mattrixwv/cipherstream/controller/monosubstitution/AutokeyCipherControllerIntegrationTest.java +++ b/src/test/java/com/mattrixwv/cipherstream/controller/monosubstitution/AutokeyCipherControllerIntegrationTest.java @@ -81,7 +81,7 @@ public class AutokeyCipherControllerIntegrationTest extends CipherStreamControll @Test public void testEncodeAutokey() throws Exception{ - mockMvc.perform(get(url + "/encode") + mockMvc.perform(post(url + "/encode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -101,7 +101,7 @@ public class AutokeyCipherControllerIntegrationTest extends CipherStreamControll @Test public void testEncodeAutokey_error() throws Exception{ - mockMvc.perform(get(url + "/encode") + mockMvc.perform(post(url + "/encode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -121,7 +121,7 @@ public class AutokeyCipherControllerIntegrationTest extends CipherStreamControll @Test public void testDecodeAutokey() throws Exception{ - mockMvc.perform(get(url + "/decode") + mockMvc.perform(post(url + "/decode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -141,7 +141,7 @@ public class AutokeyCipherControllerIntegrationTest extends CipherStreamControll @Test public void testDecodeAutokey_error() throws Exception{ - mockMvc.perform(get(url + "/decode") + mockMvc.perform(post(url + "/decode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) diff --git a/src/test/java/com/mattrixwv/cipherstream/controller/monosubstitution/BaconianCipherControllerIntegrationTest.java b/src/test/java/com/mattrixwv/cipherstream/controller/monosubstitution/BaconianCipherControllerIntegrationTest.java index 70503e1..42de63e 100644 --- a/src/test/java/com/mattrixwv/cipherstream/controller/monosubstitution/BaconianCipherControllerIntegrationTest.java +++ b/src/test/java/com/mattrixwv/cipherstream/controller/monosubstitution/BaconianCipherControllerIntegrationTest.java @@ -78,7 +78,7 @@ public class BaconianCipherControllerIntegrationTest extends CipherStreamControl @Test public void testEncodeBaconian() throws Exception{ - mockMvc.perform(get(url + "/encode") + mockMvc.perform(post(url + "/encode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -98,7 +98,7 @@ public class BaconianCipherControllerIntegrationTest extends CipherStreamControl @Test public void testEncodeBaconian_error() throws Exception{ - mockMvc.perform(get(url + "/encode") + mockMvc.perform(post(url + "/encode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -118,7 +118,7 @@ public class BaconianCipherControllerIntegrationTest extends CipherStreamControl @Test public void testDecodeBaconian() throws Exception{ - mockMvc.perform(get(url + "/decode") + mockMvc.perform(post(url + "/decode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -138,7 +138,7 @@ public class BaconianCipherControllerIntegrationTest extends CipherStreamControl @Test public void testDecodeBaconian_error() throws Exception{ - mockMvc.perform(get(url + "/decode") + mockMvc.perform(post(url + "/decode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) diff --git a/src/test/java/com/mattrixwv/cipherstream/controller/monosubstitution/BaseXCipherControllerIntegrationTest.java b/src/test/java/com/mattrixwv/cipherstream/controller/monosubstitution/BaseXCipherControllerIntegrationTest.java index e388dd4..4be4686 100644 --- a/src/test/java/com/mattrixwv/cipherstream/controller/monosubstitution/BaseXCipherControllerIntegrationTest.java +++ b/src/test/java/com/mattrixwv/cipherstream/controller/monosubstitution/BaseXCipherControllerIntegrationTest.java @@ -81,7 +81,7 @@ public class BaseXCipherControllerIntegrationTest extends CipherStreamController @Test public void testEncodeBaseXEncode() throws Exception{ - mockMvc.perform(get(url + "/encode") + mockMvc.perform(post(url + "/encode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -101,7 +101,7 @@ public class BaseXCipherControllerIntegrationTest extends CipherStreamController @Test public void testEncodeBaseX_error() throws Exception{ - mockMvc.perform(get(url + "/encode") + mockMvc.perform(post(url + "/encode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -121,7 +121,7 @@ public class BaseXCipherControllerIntegrationTest extends CipherStreamController @Test public void testDecodeBaseXDecode() throws Exception{ - mockMvc.perform(get(url + "/decode") + mockMvc.perform(post(url + "/decode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -141,7 +141,7 @@ public class BaseXCipherControllerIntegrationTest extends CipherStreamController @Test public void testDecodeBaseX_error() throws Exception{ - mockMvc.perform(get(url + "/decode") + mockMvc.perform(post(url + "/decode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) diff --git a/src/test/java/com/mattrixwv/cipherstream/controller/monosubstitution/BeaufortCipherControllerIntegrationTest.java b/src/test/java/com/mattrixwv/cipherstream/controller/monosubstitution/BeaufortCipherControllerIntegrationTest.java index 1a0fa4e..2fe85ba 100644 --- a/src/test/java/com/mattrixwv/cipherstream/controller/monosubstitution/BeaufortCipherControllerIntegrationTest.java +++ b/src/test/java/com/mattrixwv/cipherstream/controller/monosubstitution/BeaufortCipherControllerIntegrationTest.java @@ -81,7 +81,7 @@ public class BeaufortCipherControllerIntegrationTest extends CipherStreamControl @Test public void testEncodeBeaufort() throws Exception{ - mockMvc.perform(get(url + "/encode") + mockMvc.perform(post(url + "/encode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -101,7 +101,7 @@ public class BeaufortCipherControllerIntegrationTest extends CipherStreamControl @Test public void testEncodeAdfgvx_error() throws Exception{ - mockMvc.perform(get(url + "/encode") + mockMvc.perform(post(url + "/encode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -121,7 +121,7 @@ public class BeaufortCipherControllerIntegrationTest extends CipherStreamControl @Test public void testDecodeBeaufort() throws Exception{ - mockMvc.perform(get(url + "/decode") + mockMvc.perform(post(url + "/decode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -141,7 +141,7 @@ public class BeaufortCipherControllerIntegrationTest extends CipherStreamControl @Test public void testDecodeAdfgvx_error() throws Exception{ - mockMvc.perform(get(url + "/decode") + mockMvc.perform(post(url + "/decode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) diff --git a/src/test/java/com/mattrixwv/cipherstream/controller/monosubstitution/CaesarCipherControllerIntegrationTest.java b/src/test/java/com/mattrixwv/cipherstream/controller/monosubstitution/CaesarCipherControllerIntegrationTest.java index be67db8..bc25728 100644 --- a/src/test/java/com/mattrixwv/cipherstream/controller/monosubstitution/CaesarCipherControllerIntegrationTest.java +++ b/src/test/java/com/mattrixwv/cipherstream/controller/monosubstitution/CaesarCipherControllerIntegrationTest.java @@ -81,7 +81,7 @@ public class CaesarCipherControllerIntegrationTest extends CipherStreamControlle @Test public void testEncodeCaesar() throws Exception{ - mockMvc.perform(get(url + "/encode") + mockMvc.perform(post(url + "/encode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -101,7 +101,7 @@ public class CaesarCipherControllerIntegrationTest extends CipherStreamControlle @Test public void testEncodeAdfgvx_error() throws Exception{ - mockMvc.perform(get(url + "/encode") + mockMvc.perform(post(url + "/encode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -121,7 +121,7 @@ public class CaesarCipherControllerIntegrationTest extends CipherStreamControlle @Test public void testDecodeCaesar() throws Exception{ - mockMvc.perform(get(url + "/decode") + mockMvc.perform(post(url + "/decode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -141,7 +141,7 @@ public class CaesarCipherControllerIntegrationTest extends CipherStreamControlle @Test public void testDecodeAdfgvx_error() throws Exception{ - mockMvc.perform(get(url + "/decode") + mockMvc.perform(post(url + "/decode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) diff --git a/src/test/java/com/mattrixwv/cipherstream/controller/monosubstitution/OneTimePadCipherControllerIntegrationTest.java b/src/test/java/com/mattrixwv/cipherstream/controller/monosubstitution/OneTimePadCipherControllerIntegrationTest.java index 3572f7d..941d4de 100644 --- a/src/test/java/com/mattrixwv/cipherstream/controller/monosubstitution/OneTimePadCipherControllerIntegrationTest.java +++ b/src/test/java/com/mattrixwv/cipherstream/controller/monosubstitution/OneTimePadCipherControllerIntegrationTest.java @@ -81,7 +81,7 @@ public class OneTimePadCipherControllerIntegrationTest extends CipherStreamContr @Test public void testEncodeOneTimePad() throws Exception{ - mockMvc.perform(get(url + "/encode") + mockMvc.perform(post(url + "/encode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -101,7 +101,7 @@ public class OneTimePadCipherControllerIntegrationTest extends CipherStreamContr @Test public void testEncodeAdfgvx_error() throws Exception{ - mockMvc.perform(get(url + "/encode") + mockMvc.perform(post(url + "/encode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -121,7 +121,7 @@ public class OneTimePadCipherControllerIntegrationTest extends CipherStreamContr @Test public void testDecodeOneTimePad() throws Exception{ - mockMvc.perform(get(url + "/decode") + mockMvc.perform(post(url + "/decode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -141,7 +141,7 @@ public class OneTimePadCipherControllerIntegrationTest extends CipherStreamContr @Test public void testDecodeAdfgvx_error() throws Exception{ - mockMvc.perform(get(url + "/decode") + mockMvc.perform(post(url + "/decode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) diff --git a/src/test/java/com/mattrixwv/cipherstream/controller/monosubstitution/PortaCipherControllerIntegrationTest.java b/src/test/java/com/mattrixwv/cipherstream/controller/monosubstitution/PortaCipherControllerIntegrationTest.java index 0db0f47..f4ddbf2 100644 --- a/src/test/java/com/mattrixwv/cipherstream/controller/monosubstitution/PortaCipherControllerIntegrationTest.java +++ b/src/test/java/com/mattrixwv/cipherstream/controller/monosubstitution/PortaCipherControllerIntegrationTest.java @@ -82,7 +82,7 @@ public class PortaCipherControllerIntegrationTest extends CipherStreamController @Test public void testEncodePorta() throws Exception{ - mockMvc.perform(get(url + "/encode") + mockMvc.perform(post(url + "/encode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -106,7 +106,7 @@ public class PortaCipherControllerIntegrationTest extends CipherStreamController @Test public void testEncodeAdfgvx_error() throws Exception{ - mockMvc.perform(get(url + "/encode") + mockMvc.perform(post(url + "/encode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -126,7 +126,7 @@ public class PortaCipherControllerIntegrationTest extends CipherStreamController @Test public void testDecodePorta() throws Exception{ - mockMvc.perform(get(url + "/decode") + mockMvc.perform(post(url + "/decode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -150,7 +150,7 @@ public class PortaCipherControllerIntegrationTest extends CipherStreamController @Test public void testDecodeAdfgvx_error() throws Exception{ - mockMvc.perform(get(url + "/decode") + mockMvc.perform(post(url + "/decode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) diff --git a/src/test/java/com/mattrixwv/cipherstream/controller/monosubstitution/SubstitutionCipherControllerIntegrationTest.java b/src/test/java/com/mattrixwv/cipherstream/controller/monosubstitution/SubstitutionCipherControllerIntegrationTest.java index e679b43..d446733 100644 --- a/src/test/java/com/mattrixwv/cipherstream/controller/monosubstitution/SubstitutionCipherControllerIntegrationTest.java +++ b/src/test/java/com/mattrixwv/cipherstream/controller/monosubstitution/SubstitutionCipherControllerIntegrationTest.java @@ -81,7 +81,7 @@ public class SubstitutionCipherControllerIntegrationTest extends CipherStreamCon @Test public void testEncodeSubstitution() throws Exception{ - mockMvc.perform(get(url + "/encode") + mockMvc.perform(post(url + "/encode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -101,7 +101,7 @@ public class SubstitutionCipherControllerIntegrationTest extends CipherStreamCon @Test public void testEncodeAdfgvx_error() throws Exception{ - mockMvc.perform(get(url + "/encode") + mockMvc.perform(post(url + "/encode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -121,7 +121,7 @@ public class SubstitutionCipherControllerIntegrationTest extends CipherStreamCon @Test public void testDecodeSubstitution() throws Exception{ - mockMvc.perform(get(url + "/decode") + mockMvc.perform(post(url + "/decode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -141,7 +141,7 @@ public class SubstitutionCipherControllerIntegrationTest extends CipherStreamCon @Test public void testDecodeAdfgvx_error() throws Exception{ - mockMvc.perform(get(url + "/decode") + mockMvc.perform(post(url + "/decode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) diff --git a/src/test/java/com/mattrixwv/cipherstream/controller/monosubstitution/VigenereCipherControllerIntegrationTest.java b/src/test/java/com/mattrixwv/cipherstream/controller/monosubstitution/VigenereCipherControllerIntegrationTest.java index 3ea33a6..6ae36e9 100644 --- a/src/test/java/com/mattrixwv/cipherstream/controller/monosubstitution/VigenereCipherControllerIntegrationTest.java +++ b/src/test/java/com/mattrixwv/cipherstream/controller/monosubstitution/VigenereCipherControllerIntegrationTest.java @@ -81,7 +81,7 @@ public class VigenereCipherControllerIntegrationTest extends CipherStreamControl @Test public void testEncodeVigenere() throws Exception{ - mockMvc.perform(get(url + "/encode") + mockMvc.perform(post(url + "/encode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -101,7 +101,7 @@ public class VigenereCipherControllerIntegrationTest extends CipherStreamControl @Test public void testEncodeAdfgvx_error() throws Exception{ - mockMvc.perform(get(url + "/encode") + mockMvc.perform(post(url + "/encode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -121,7 +121,7 @@ public class VigenereCipherControllerIntegrationTest extends CipherStreamControl @Test public void testDecodeVigenere() throws Exception{ - mockMvc.perform(get(url + "/decode") + mockMvc.perform(post(url + "/decode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -141,7 +141,7 @@ public class VigenereCipherControllerIntegrationTest extends CipherStreamControl @Test public void testDecodeAdfgvx_error() throws Exception{ - mockMvc.perform(get(url + "/decode") + mockMvc.perform(post(url + "/decode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) diff --git a/src/test/java/com/mattrixwv/cipherstream/controller/polysubstitution/BifidCipherControllerIntegrationTest.java b/src/test/java/com/mattrixwv/cipherstream/controller/polysubstitution/BifidCipherControllerIntegrationTest.java index 7a967a4..5543bc5 100644 --- a/src/test/java/com/mattrixwv/cipherstream/controller/polysubstitution/BifidCipherControllerIntegrationTest.java +++ b/src/test/java/com/mattrixwv/cipherstream/controller/polysubstitution/BifidCipherControllerIntegrationTest.java @@ -81,7 +81,7 @@ public class BifidCipherControllerIntegrationTest extends CipherStreamController @Test public void testEncodeBifid() throws Exception{ - mockMvc.perform(get(url + "/encode") + mockMvc.perform(post(url + "/encode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -101,7 +101,7 @@ public class BifidCipherControllerIntegrationTest extends CipherStreamController @Test public void testEncodeAdfgvx_error() throws Exception{ - mockMvc.perform(get(url + "/encode") + mockMvc.perform(post(url + "/encode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -121,7 +121,7 @@ public class BifidCipherControllerIntegrationTest extends CipherStreamController @Test public void testDecodeBifid() throws Exception{ - mockMvc.perform(get(url + "/decode") + mockMvc.perform(post(url + "/decode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -141,7 +141,7 @@ public class BifidCipherControllerIntegrationTest extends CipherStreamController @Test public void testDecodeAdfgvx_error() throws Exception{ - mockMvc.perform(get(url + "/decode") + mockMvc.perform(post(url + "/decode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) diff --git a/src/test/java/com/mattrixwv/cipherstream/controller/polysubstitution/ColumnarCipherControllerIntegrationTest.java b/src/test/java/com/mattrixwv/cipherstream/controller/polysubstitution/ColumnarCipherControllerIntegrationTest.java index 2e44ddd..0208512 100644 --- a/src/test/java/com/mattrixwv/cipherstream/controller/polysubstitution/ColumnarCipherControllerIntegrationTest.java +++ b/src/test/java/com/mattrixwv/cipherstream/controller/polysubstitution/ColumnarCipherControllerIntegrationTest.java @@ -81,7 +81,7 @@ public class ColumnarCipherControllerIntegrationTest extends CipherStreamControl @Test public void testEncodeColumnar() throws Exception{ - mockMvc.perform(get(url + "/encode") + mockMvc.perform(post(url + "/encode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -101,7 +101,7 @@ public class ColumnarCipherControllerIntegrationTest extends CipherStreamControl @Test public void testEncodeAdfgvx_error() throws Exception{ - mockMvc.perform(get(url + "/encode") + mockMvc.perform(post(url + "/encode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -121,7 +121,7 @@ public class ColumnarCipherControllerIntegrationTest extends CipherStreamControl @Test public void testDecodeColumnar() throws Exception{ - mockMvc.perform(get(url + "/decode") + mockMvc.perform(post(url + "/decode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -141,7 +141,7 @@ public class ColumnarCipherControllerIntegrationTest extends CipherStreamControl @Test public void testDecodeAdfgvx_error() throws Exception{ - mockMvc.perform(get(url + "/decode") + mockMvc.perform(post(url + "/decode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) diff --git a/src/test/java/com/mattrixwv/cipherstream/controller/polysubstitution/HillCipherControllerIntegrationTest.java b/src/test/java/com/mattrixwv/cipherstream/controller/polysubstitution/HillCipherControllerIntegrationTest.java index 1c26fbd..1ef8a46 100644 --- a/src/test/java/com/mattrixwv/cipherstream/controller/polysubstitution/HillCipherControllerIntegrationTest.java +++ b/src/test/java/com/mattrixwv/cipherstream/controller/polysubstitution/HillCipherControllerIntegrationTest.java @@ -81,7 +81,7 @@ public class HillCipherControllerIntegrationTest extends CipherStreamControllerI @Test public void testEncodeHill() throws Exception{ - mockMvc.perform(get(url + "/encode") + mockMvc.perform(post(url + "/encode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -101,7 +101,7 @@ public class HillCipherControllerIntegrationTest extends CipherStreamControllerI @Test public void testEncodeAdfgvx_error() throws Exception{ - mockMvc.perform(get(url + "/encode") + mockMvc.perform(post(url + "/encode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -121,7 +121,7 @@ public class HillCipherControllerIntegrationTest extends CipherStreamControllerI @Test public void testDecodeHill() throws Exception{ - mockMvc.perform(get(url + "/decode") + mockMvc.perform(post(url + "/decode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -141,7 +141,7 @@ public class HillCipherControllerIntegrationTest extends CipherStreamControllerI @Test public void testDecodeAdfgvx_error() throws Exception{ - mockMvc.perform(get(url + "/decode") + mockMvc.perform(post(url + "/decode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) diff --git a/src/test/java/com/mattrixwv/cipherstream/controller/polysubstitution/MorseCodeControllerIntegrationTest.java b/src/test/java/com/mattrixwv/cipherstream/controller/polysubstitution/MorseCodeControllerIntegrationTest.java index e30f9d7..c43533e 100644 --- a/src/test/java/com/mattrixwv/cipherstream/controller/polysubstitution/MorseCodeControllerIntegrationTest.java +++ b/src/test/java/com/mattrixwv/cipherstream/controller/polysubstitution/MorseCodeControllerIntegrationTest.java @@ -71,7 +71,7 @@ public class MorseCodeControllerIntegrationTest extends CipherStreamControllerIn @Test public void testEncodeMorse() throws Exception{ - mockMvc.perform(get(url + "/encode") + mockMvc.perform(post(url + "/encode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -91,7 +91,7 @@ public class MorseCodeControllerIntegrationTest extends CipherStreamControllerIn @Test public void testEncodeAdfgvx_error() throws Exception{ - mockMvc.perform(get(url + "/encode") + mockMvc.perform(post(url + "/encode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -111,7 +111,7 @@ public class MorseCodeControllerIntegrationTest extends CipherStreamControllerIn @Test public void testDecodeMorse() throws Exception{ - mockMvc.perform(get(url + "/decode") + mockMvc.perform(post(url + "/decode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -131,7 +131,7 @@ public class MorseCodeControllerIntegrationTest extends CipherStreamControllerIn @Test public void testDecodeAdfgvx_error() throws Exception{ - mockMvc.perform(get(url + "/decode") + mockMvc.perform(post(url + "/decode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) diff --git a/src/test/java/com/mattrixwv/cipherstream/controller/polysubstitution/PlayfairCipherControllerIntegrationTest.java b/src/test/java/com/mattrixwv/cipherstream/controller/polysubstitution/PlayfairCipherControllerIntegrationTest.java index 199ca5c..01a1214 100644 --- a/src/test/java/com/mattrixwv/cipherstream/controller/polysubstitution/PlayfairCipherControllerIntegrationTest.java +++ b/src/test/java/com/mattrixwv/cipherstream/controller/polysubstitution/PlayfairCipherControllerIntegrationTest.java @@ -82,7 +82,7 @@ public class PlayfairCipherControllerIntegrationTest extends CipherStreamControl @Test public void testEncodePlayfair() throws Exception{ - mockMvc.perform(get(url + "/encode") + mockMvc.perform(post(url + "/encode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -102,7 +102,7 @@ public class PlayfairCipherControllerIntegrationTest extends CipherStreamControl @Test public void testEncodeAdfgvx_error() throws Exception{ - mockMvc.perform(get(url + "/encode") + mockMvc.perform(post(url + "/encode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -122,7 +122,7 @@ public class PlayfairCipherControllerIntegrationTest extends CipherStreamControl @Test public void testDecodePlayfair() throws Exception{ - mockMvc.perform(get(url + "/decode") + mockMvc.perform(post(url + "/decode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -142,7 +142,7 @@ public class PlayfairCipherControllerIntegrationTest extends CipherStreamControl @Test public void testDecodeAdfgvx_error() throws Exception{ - mockMvc.perform(get(url + "/decode") + mockMvc.perform(post(url + "/decode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) diff --git a/src/test/java/com/mattrixwv/cipherstream/controller/polysubstitution/PolybiusSquareControllerIntegrationTest.java b/src/test/java/com/mattrixwv/cipherstream/controller/polysubstitution/PolybiusSquareControllerIntegrationTest.java index df1505b..789400c 100644 --- a/src/test/java/com/mattrixwv/cipherstream/controller/polysubstitution/PolybiusSquareControllerIntegrationTest.java +++ b/src/test/java/com/mattrixwv/cipherstream/controller/polysubstitution/PolybiusSquareControllerIntegrationTest.java @@ -81,7 +81,7 @@ public class PolybiusSquareControllerIntegrationTest extends CipherStreamControl @Test public void testEncodePolybius() throws Exception{ - mockMvc.perform(get(url + "/encode") + mockMvc.perform(post(url + "/encode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -101,7 +101,7 @@ public class PolybiusSquareControllerIntegrationTest extends CipherStreamControl @Test public void testEncodeAdfgvx_error() throws Exception{ - mockMvc.perform(get(url + "/encode") + mockMvc.perform(post(url + "/encode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -121,7 +121,7 @@ public class PolybiusSquareControllerIntegrationTest extends CipherStreamControl @Test public void testDecodePolybius() throws Exception{ - mockMvc.perform(get(url + "/decode") + mockMvc.perform(post(url + "/decode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -141,7 +141,7 @@ public class PolybiusSquareControllerIntegrationTest extends CipherStreamControl @Test public void testDecodeAdfgvx_error() throws Exception{ - mockMvc.perform(get(url + "/decode") + mockMvc.perform(post(url + "/decode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) diff --git a/src/test/java/com/mattrixwv/cipherstream/controller/polysubstitution/RailFenceControllerIntegrationTest.java b/src/test/java/com/mattrixwv/cipherstream/controller/polysubstitution/RailFenceControllerIntegrationTest.java index abd4958..0fa8976 100644 --- a/src/test/java/com/mattrixwv/cipherstream/controller/polysubstitution/RailFenceControllerIntegrationTest.java +++ b/src/test/java/com/mattrixwv/cipherstream/controller/polysubstitution/RailFenceControllerIntegrationTest.java @@ -81,7 +81,7 @@ public class RailFenceControllerIntegrationTest extends CipherStreamControllerIn @Test public void testEncodeRailFence() throws Exception{ - mockMvc.perform(get(url + "/encode") + mockMvc.perform(post(url + "/encode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -101,7 +101,7 @@ public class RailFenceControllerIntegrationTest extends CipherStreamControllerIn @Test public void testEncodeAdfgvx_error() throws Exception{ - mockMvc.perform(get(url + "/encode") + mockMvc.perform(post(url + "/encode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -121,7 +121,7 @@ public class RailFenceControllerIntegrationTest extends CipherStreamControllerIn @Test public void testDecodeRailFence() throws Exception{ - mockMvc.perform(get(url + "/decode") + mockMvc.perform(post(url + "/decode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -141,7 +141,7 @@ public class RailFenceControllerIntegrationTest extends CipherStreamControllerIn @Test public void testDecodeAdfgvx_error() throws Exception{ - mockMvc.perform(get(url + "/decode") + mockMvc.perform(post(url + "/decode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) diff --git a/src/test/java/com/mattrixwv/cipherstream/controller/polysubstitution/TrifidCipherControllerIntegrationTest.java b/src/test/java/com/mattrixwv/cipherstream/controller/polysubstitution/TrifidCipherControllerIntegrationTest.java index d1dc9c7..784d890 100644 --- a/src/test/java/com/mattrixwv/cipherstream/controller/polysubstitution/TrifidCipherControllerIntegrationTest.java +++ b/src/test/java/com/mattrixwv/cipherstream/controller/polysubstitution/TrifidCipherControllerIntegrationTest.java @@ -87,7 +87,7 @@ public class TrifidCipherControllerIntegrationTest extends CipherStreamControlle @Test public void testEncodeTrifid() throws Exception{ - mockMvc.perform(get(url + "/encode") + mockMvc.perform(post(url + "/encode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -107,7 +107,7 @@ public class TrifidCipherControllerIntegrationTest extends CipherStreamControlle @Test public void testEncodeAdfgvx_error() throws Exception{ - mockMvc.perform(get(url + "/encode") + mockMvc.perform(post(url + "/encode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -127,7 +127,7 @@ public class TrifidCipherControllerIntegrationTest extends CipherStreamControlle @Test public void testDecodeTrifid() throws Exception{ - mockMvc.perform(get(url + "/decode") + mockMvc.perform(post(url + "/decode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON) @@ -147,7 +147,7 @@ public class TrifidCipherControllerIntegrationTest extends CipherStreamControlle @Test public void testDecodeAdfgvx_error() throws Exception{ - mockMvc.perform(get(url + "/decode") + mockMvc.perform(post(url + "/decode") .header("X-Request-Id", requestId) .header("X-Forwarded-For", ipAddress) .contentType(MediaType.APPLICATION_JSON)