Update integration tests
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user