Update integration tests

This commit is contained in:
Matthew Ellison
2024-04-17 10:10:19 -04:00
parent eecd4353d3
commit a3598a32ae
21 changed files with 86 additions and 86 deletions

View File

@@ -31,7 +31,7 @@ public class AdfgvxCipherControllerIntegrationTest extends CipherStreamControlle
@Mock(name = "com.mattrixwv.cipherstream.controller.combination.AdfgvxCipherController") @Mock(name = "com.mattrixwv.cipherstream.controller.combination.AdfgvxCipherController")
private Logger adfgvxLogger; private Logger adfgvxLogger;
//Fields //Fields
private String url = "/adfgvx"; private String url = "/cipherStream/adfgvx";
private String decodedString = "Message to^encode"; private String decodedString = "Message to^encode";
private String encodedString = "AXgvdavfxgagfa afag^aaxdxfgdagda"; private String encodedString = "AXgvdavfxgagfa afag^aaxdxfgdagda";
private String keyword = "keyword"; private String keyword = "keyword";
@@ -84,7 +84,7 @@ public class AdfgvxCipherControllerIntegrationTest extends CipherStreamControlle
@Test @Test
public void testEncodeAdfgvx() throws Exception{ public void testEncodeAdfgvx() throws Exception{
mockMvc.perform(get(url + "/encode") mockMvc.perform(post(url + "/encode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -104,7 +104,7 @@ public class AdfgvxCipherControllerIntegrationTest extends CipherStreamControlle
@Test @Test
public void testEncodeAdfgvx_error() throws Exception{ public void testEncodeAdfgvx_error() throws Exception{
mockMvc.perform(get(url + "/encode") mockMvc.perform(post(url + "/encode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -124,7 +124,7 @@ public class AdfgvxCipherControllerIntegrationTest extends CipherStreamControlle
@Test @Test
public void testDecodeAdfgvx() throws Exception{ public void testDecodeAdfgvx() throws Exception{
mockMvc.perform(get(url + "/decode") mockMvc.perform(post(url + "/decode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -144,7 +144,7 @@ public class AdfgvxCipherControllerIntegrationTest extends CipherStreamControlle
@Test @Test
public void testDecodeAdfgvx_error() throws Exception{ public void testDecodeAdfgvx_error() throws Exception{
mockMvc.perform(get(url + "/decode") mockMvc.perform(post(url + "/decode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)

View File

@@ -31,7 +31,7 @@ public class AdfgxCipherControllerIntegrationTest extends CipherStreamController
@Mock(name = "com.mattrixwv.cipherstream.controller.combination.AdfgxCipherController") @Mock(name = "com.mattrixwv.cipherstream.controller.combination.AdfgxCipherController")
private Logger adfgxLogger; private Logger adfgxLogger;
//Fields //Fields
private String url = "/adfgx"; private String url = "/cipherStream/adfgx";
private String decodedString = "Message to^encode"; private String decodedString = "Message to^encode";
private String encodedString = "AAgagadfagaxxd axdx^adafafxddgdf"; private String encodedString = "AAgagadfagaxxd axdx^adafafxddgdf";
private String keyword = "keyword"; private String keyword = "keyword";
@@ -84,7 +84,7 @@ public class AdfgxCipherControllerIntegrationTest extends CipherStreamController
@Test @Test
public void testEncodeAdfgx() throws Exception{ public void testEncodeAdfgx() throws Exception{
mockMvc.perform(get(url + "/encode") mockMvc.perform(post(url + "/encode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -104,7 +104,7 @@ public class AdfgxCipherControllerIntegrationTest extends CipherStreamController
@Test @Test
public void testEncodeAdfgx_error() throws Exception{ public void testEncodeAdfgx_error() throws Exception{
mockMvc.perform(get(url + "/encode") mockMvc.perform(post(url + "/encode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -124,7 +124,7 @@ public class AdfgxCipherControllerIntegrationTest extends CipherStreamController
@Test @Test
public void testDecodeAdfgx() throws Exception{ public void testDecodeAdfgx() throws Exception{
mockMvc.perform(get(url + "/decode") mockMvc.perform(post(url + "/decode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -144,7 +144,7 @@ public class AdfgxCipherControllerIntegrationTest extends CipherStreamController
@Test @Test
public void testDecodeAdfgvx_error() throws Exception{ public void testDecodeAdfgvx_error() throws Exception{
mockMvc.perform(get(url + "/decode") mockMvc.perform(post(url + "/decode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)

View File

@@ -84,7 +84,7 @@ public class AffineCipherControllerIntegrationTest extends CipherStreamControlle
@Test @Test
public void testEncodeAffine() throws Exception{ public void testEncodeAffine() throws Exception{
mockMvc.perform(get(url + "/encode") mockMvc.perform(post(url + "/encode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -104,7 +104,7 @@ public class AffineCipherControllerIntegrationTest extends CipherStreamControlle
@Test @Test
public void testEncodeAffine_error() throws Exception{ public void testEncodeAffine_error() throws Exception{
mockMvc.perform(get(url + "/encode") mockMvc.perform(post(url + "/encode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -124,7 +124,7 @@ public class AffineCipherControllerIntegrationTest extends CipherStreamControlle
@Test @Test
public void testDecodeAffine() throws Exception{ public void testDecodeAffine() throws Exception{
mockMvc.perform(get(url + "/decode") mockMvc.perform(post(url + "/decode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -144,7 +144,7 @@ public class AffineCipherControllerIntegrationTest extends CipherStreamControlle
@Test @Test
public void testDecodeAffine_error() throws Exception{ public void testDecodeAffine_error() throws Exception{
mockMvc.perform(get(url + "/decode") mockMvc.perform(post(url + "/decode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)

View File

@@ -78,7 +78,7 @@ public class AtbashCipherControllerIntegrationTest extends CipherStreamControlle
@Test @Test
public void testEncodeAtbash() throws Exception{ public void testEncodeAtbash() throws Exception{
mockMvc.perform(get(url + "/encode") mockMvc.perform(post(url + "/encode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -98,7 +98,7 @@ public class AtbashCipherControllerIntegrationTest extends CipherStreamControlle
@Test @Test
public void testEncodeAtbash_error() throws Exception{ public void testEncodeAtbash_error() throws Exception{
mockMvc.perform(get(url + "/encode") mockMvc.perform(post(url + "/encode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -118,7 +118,7 @@ public class AtbashCipherControllerIntegrationTest extends CipherStreamControlle
@Test @Test
public void testDecodeAtbash() throws Exception{ public void testDecodeAtbash() throws Exception{
mockMvc.perform(get(url + "/decode") mockMvc.perform(post(url + "/decode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -138,7 +138,7 @@ public class AtbashCipherControllerIntegrationTest extends CipherStreamControlle
@Test @Test
public void testDecodeAtbash_error() throws Exception{ public void testDecodeAtbash_error() throws Exception{
mockMvc.perform(get(url + "/decode") mockMvc.perform(post(url + "/decode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)

View File

@@ -81,7 +81,7 @@ public class AutokeyCipherControllerIntegrationTest extends CipherStreamControll
@Test @Test
public void testEncodeAutokey() throws Exception{ public void testEncodeAutokey() throws Exception{
mockMvc.perform(get(url + "/encode") mockMvc.perform(post(url + "/encode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -101,7 +101,7 @@ public class AutokeyCipherControllerIntegrationTest extends CipherStreamControll
@Test @Test
public void testEncodeAutokey_error() throws Exception{ public void testEncodeAutokey_error() throws Exception{
mockMvc.perform(get(url + "/encode") mockMvc.perform(post(url + "/encode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -121,7 +121,7 @@ public class AutokeyCipherControllerIntegrationTest extends CipherStreamControll
@Test @Test
public void testDecodeAutokey() throws Exception{ public void testDecodeAutokey() throws Exception{
mockMvc.perform(get(url + "/decode") mockMvc.perform(post(url + "/decode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -141,7 +141,7 @@ public class AutokeyCipherControllerIntegrationTest extends CipherStreamControll
@Test @Test
public void testDecodeAutokey_error() throws Exception{ public void testDecodeAutokey_error() throws Exception{
mockMvc.perform(get(url + "/decode") mockMvc.perform(post(url + "/decode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)

View File

@@ -78,7 +78,7 @@ public class BaconianCipherControllerIntegrationTest extends CipherStreamControl
@Test @Test
public void testEncodeBaconian() throws Exception{ public void testEncodeBaconian() throws Exception{
mockMvc.perform(get(url + "/encode") mockMvc.perform(post(url + "/encode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -98,7 +98,7 @@ public class BaconianCipherControllerIntegrationTest extends CipherStreamControl
@Test @Test
public void testEncodeBaconian_error() throws Exception{ public void testEncodeBaconian_error() throws Exception{
mockMvc.perform(get(url + "/encode") mockMvc.perform(post(url + "/encode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -118,7 +118,7 @@ public class BaconianCipherControllerIntegrationTest extends CipherStreamControl
@Test @Test
public void testDecodeBaconian() throws Exception{ public void testDecodeBaconian() throws Exception{
mockMvc.perform(get(url + "/decode") mockMvc.perform(post(url + "/decode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -138,7 +138,7 @@ public class BaconianCipherControllerIntegrationTest extends CipherStreamControl
@Test @Test
public void testDecodeBaconian_error() throws Exception{ public void testDecodeBaconian_error() throws Exception{
mockMvc.perform(get(url + "/decode") mockMvc.perform(post(url + "/decode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)

View File

@@ -81,7 +81,7 @@ public class BaseXCipherControllerIntegrationTest extends CipherStreamController
@Test @Test
public void testEncodeBaseXEncode() throws Exception{ public void testEncodeBaseXEncode() throws Exception{
mockMvc.perform(get(url + "/encode") mockMvc.perform(post(url + "/encode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -101,7 +101,7 @@ public class BaseXCipherControllerIntegrationTest extends CipherStreamController
@Test @Test
public void testEncodeBaseX_error() throws Exception{ public void testEncodeBaseX_error() throws Exception{
mockMvc.perform(get(url + "/encode") mockMvc.perform(post(url + "/encode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -121,7 +121,7 @@ public class BaseXCipherControllerIntegrationTest extends CipherStreamController
@Test @Test
public void testDecodeBaseXDecode() throws Exception{ public void testDecodeBaseXDecode() throws Exception{
mockMvc.perform(get(url + "/decode") mockMvc.perform(post(url + "/decode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -141,7 +141,7 @@ public class BaseXCipherControllerIntegrationTest extends CipherStreamController
@Test @Test
public void testDecodeBaseX_error() throws Exception{ public void testDecodeBaseX_error() throws Exception{
mockMvc.perform(get(url + "/decode") mockMvc.perform(post(url + "/decode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)

View File

@@ -81,7 +81,7 @@ public class BeaufortCipherControllerIntegrationTest extends CipherStreamControl
@Test @Test
public void testEncodeBeaufort() throws Exception{ public void testEncodeBeaufort() throws Exception{
mockMvc.perform(get(url + "/encode") mockMvc.perform(post(url + "/encode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -101,7 +101,7 @@ public class BeaufortCipherControllerIntegrationTest extends CipherStreamControl
@Test @Test
public void testEncodeAdfgvx_error() throws Exception{ public void testEncodeAdfgvx_error() throws Exception{
mockMvc.perform(get(url + "/encode") mockMvc.perform(post(url + "/encode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -121,7 +121,7 @@ public class BeaufortCipherControllerIntegrationTest extends CipherStreamControl
@Test @Test
public void testDecodeBeaufort() throws Exception{ public void testDecodeBeaufort() throws Exception{
mockMvc.perform(get(url + "/decode") mockMvc.perform(post(url + "/decode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -141,7 +141,7 @@ public class BeaufortCipherControllerIntegrationTest extends CipherStreamControl
@Test @Test
public void testDecodeAdfgvx_error() throws Exception{ public void testDecodeAdfgvx_error() throws Exception{
mockMvc.perform(get(url + "/decode") mockMvc.perform(post(url + "/decode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)

View File

@@ -81,7 +81,7 @@ public class CaesarCipherControllerIntegrationTest extends CipherStreamControlle
@Test @Test
public void testEncodeCaesar() throws Exception{ public void testEncodeCaesar() throws Exception{
mockMvc.perform(get(url + "/encode") mockMvc.perform(post(url + "/encode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -101,7 +101,7 @@ public class CaesarCipherControllerIntegrationTest extends CipherStreamControlle
@Test @Test
public void testEncodeAdfgvx_error() throws Exception{ public void testEncodeAdfgvx_error() throws Exception{
mockMvc.perform(get(url + "/encode") mockMvc.perform(post(url + "/encode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -121,7 +121,7 @@ public class CaesarCipherControllerIntegrationTest extends CipherStreamControlle
@Test @Test
public void testDecodeCaesar() throws Exception{ public void testDecodeCaesar() throws Exception{
mockMvc.perform(get(url + "/decode") mockMvc.perform(post(url + "/decode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -141,7 +141,7 @@ public class CaesarCipherControllerIntegrationTest extends CipherStreamControlle
@Test @Test
public void testDecodeAdfgvx_error() throws Exception{ public void testDecodeAdfgvx_error() throws Exception{
mockMvc.perform(get(url + "/decode") mockMvc.perform(post(url + "/decode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)

View File

@@ -81,7 +81,7 @@ public class OneTimePadCipherControllerIntegrationTest extends CipherStreamContr
@Test @Test
public void testEncodeOneTimePad() throws Exception{ public void testEncodeOneTimePad() throws Exception{
mockMvc.perform(get(url + "/encode") mockMvc.perform(post(url + "/encode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -101,7 +101,7 @@ public class OneTimePadCipherControllerIntegrationTest extends CipherStreamContr
@Test @Test
public void testEncodeAdfgvx_error() throws Exception{ public void testEncodeAdfgvx_error() throws Exception{
mockMvc.perform(get(url + "/encode") mockMvc.perform(post(url + "/encode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -121,7 +121,7 @@ public class OneTimePadCipherControllerIntegrationTest extends CipherStreamContr
@Test @Test
public void testDecodeOneTimePad() throws Exception{ public void testDecodeOneTimePad() throws Exception{
mockMvc.perform(get(url + "/decode") mockMvc.perform(post(url + "/decode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -141,7 +141,7 @@ public class OneTimePadCipherControllerIntegrationTest extends CipherStreamContr
@Test @Test
public void testDecodeAdfgvx_error() throws Exception{ public void testDecodeAdfgvx_error() throws Exception{
mockMvc.perform(get(url + "/decode") mockMvc.perform(post(url + "/decode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)

View File

@@ -82,7 +82,7 @@ public class PortaCipherControllerIntegrationTest extends CipherStreamController
@Test @Test
public void testEncodePorta() throws Exception{ public void testEncodePorta() throws Exception{
mockMvc.perform(get(url + "/encode") mockMvc.perform(post(url + "/encode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -106,7 +106,7 @@ public class PortaCipherControllerIntegrationTest extends CipherStreamController
@Test @Test
public void testEncodeAdfgvx_error() throws Exception{ public void testEncodeAdfgvx_error() throws Exception{
mockMvc.perform(get(url + "/encode") mockMvc.perform(post(url + "/encode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -126,7 +126,7 @@ public class PortaCipherControllerIntegrationTest extends CipherStreamController
@Test @Test
public void testDecodePorta() throws Exception{ public void testDecodePorta() throws Exception{
mockMvc.perform(get(url + "/decode") mockMvc.perform(post(url + "/decode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -150,7 +150,7 @@ public class PortaCipherControllerIntegrationTest extends CipherStreamController
@Test @Test
public void testDecodeAdfgvx_error() throws Exception{ public void testDecodeAdfgvx_error() throws Exception{
mockMvc.perform(get(url + "/decode") mockMvc.perform(post(url + "/decode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)

View File

@@ -81,7 +81,7 @@ public class SubstitutionCipherControllerIntegrationTest extends CipherStreamCon
@Test @Test
public void testEncodeSubstitution() throws Exception{ public void testEncodeSubstitution() throws Exception{
mockMvc.perform(get(url + "/encode") mockMvc.perform(post(url + "/encode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -101,7 +101,7 @@ public class SubstitutionCipherControllerIntegrationTest extends CipherStreamCon
@Test @Test
public void testEncodeAdfgvx_error() throws Exception{ public void testEncodeAdfgvx_error() throws Exception{
mockMvc.perform(get(url + "/encode") mockMvc.perform(post(url + "/encode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -121,7 +121,7 @@ public class SubstitutionCipherControllerIntegrationTest extends CipherStreamCon
@Test @Test
public void testDecodeSubstitution() throws Exception{ public void testDecodeSubstitution() throws Exception{
mockMvc.perform(get(url + "/decode") mockMvc.perform(post(url + "/decode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -141,7 +141,7 @@ public class SubstitutionCipherControllerIntegrationTest extends CipherStreamCon
@Test @Test
public void testDecodeAdfgvx_error() throws Exception{ public void testDecodeAdfgvx_error() throws Exception{
mockMvc.perform(get(url + "/decode") mockMvc.perform(post(url + "/decode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)

View File

@@ -81,7 +81,7 @@ public class VigenereCipherControllerIntegrationTest extends CipherStreamControl
@Test @Test
public void testEncodeVigenere() throws Exception{ public void testEncodeVigenere() throws Exception{
mockMvc.perform(get(url + "/encode") mockMvc.perform(post(url + "/encode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -101,7 +101,7 @@ public class VigenereCipherControllerIntegrationTest extends CipherStreamControl
@Test @Test
public void testEncodeAdfgvx_error() throws Exception{ public void testEncodeAdfgvx_error() throws Exception{
mockMvc.perform(get(url + "/encode") mockMvc.perform(post(url + "/encode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -121,7 +121,7 @@ public class VigenereCipherControllerIntegrationTest extends CipherStreamControl
@Test @Test
public void testDecodeVigenere() throws Exception{ public void testDecodeVigenere() throws Exception{
mockMvc.perform(get(url + "/decode") mockMvc.perform(post(url + "/decode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -141,7 +141,7 @@ public class VigenereCipherControllerIntegrationTest extends CipherStreamControl
@Test @Test
public void testDecodeAdfgvx_error() throws Exception{ public void testDecodeAdfgvx_error() throws Exception{
mockMvc.perform(get(url + "/decode") mockMvc.perform(post(url + "/decode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)

View File

@@ -81,7 +81,7 @@ public class BifidCipherControllerIntegrationTest extends CipherStreamController
@Test @Test
public void testEncodeBifid() throws Exception{ public void testEncodeBifid() throws Exception{
mockMvc.perform(get(url + "/encode") mockMvc.perform(post(url + "/encode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -101,7 +101,7 @@ public class BifidCipherControllerIntegrationTest extends CipherStreamController
@Test @Test
public void testEncodeAdfgvx_error() throws Exception{ public void testEncodeAdfgvx_error() throws Exception{
mockMvc.perform(get(url + "/encode") mockMvc.perform(post(url + "/encode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -121,7 +121,7 @@ public class BifidCipherControllerIntegrationTest extends CipherStreamController
@Test @Test
public void testDecodeBifid() throws Exception{ public void testDecodeBifid() throws Exception{
mockMvc.perform(get(url + "/decode") mockMvc.perform(post(url + "/decode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -141,7 +141,7 @@ public class BifidCipherControllerIntegrationTest extends CipherStreamController
@Test @Test
public void testDecodeAdfgvx_error() throws Exception{ public void testDecodeAdfgvx_error() throws Exception{
mockMvc.perform(get(url + "/decode") mockMvc.perform(post(url + "/decode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)

View File

@@ -81,7 +81,7 @@ public class ColumnarCipherControllerIntegrationTest extends CipherStreamControl
@Test @Test
public void testEncodeColumnar() throws Exception{ public void testEncodeColumnar() throws Exception{
mockMvc.perform(get(url + "/encode") mockMvc.perform(post(url + "/encode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -101,7 +101,7 @@ public class ColumnarCipherControllerIntegrationTest extends CipherStreamControl
@Test @Test
public void testEncodeAdfgvx_error() throws Exception{ public void testEncodeAdfgvx_error() throws Exception{
mockMvc.perform(get(url + "/encode") mockMvc.perform(post(url + "/encode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -121,7 +121,7 @@ public class ColumnarCipherControllerIntegrationTest extends CipherStreamControl
@Test @Test
public void testDecodeColumnar() throws Exception{ public void testDecodeColumnar() throws Exception{
mockMvc.perform(get(url + "/decode") mockMvc.perform(post(url + "/decode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -141,7 +141,7 @@ public class ColumnarCipherControllerIntegrationTest extends CipherStreamControl
@Test @Test
public void testDecodeAdfgvx_error() throws Exception{ public void testDecodeAdfgvx_error() throws Exception{
mockMvc.perform(get(url + "/decode") mockMvc.perform(post(url + "/decode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)

View File

@@ -81,7 +81,7 @@ public class HillCipherControllerIntegrationTest extends CipherStreamControllerI
@Test @Test
public void testEncodeHill() throws Exception{ public void testEncodeHill() throws Exception{
mockMvc.perform(get(url + "/encode") mockMvc.perform(post(url + "/encode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -101,7 +101,7 @@ public class HillCipherControllerIntegrationTest extends CipherStreamControllerI
@Test @Test
public void testEncodeAdfgvx_error() throws Exception{ public void testEncodeAdfgvx_error() throws Exception{
mockMvc.perform(get(url + "/encode") mockMvc.perform(post(url + "/encode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -121,7 +121,7 @@ public class HillCipherControllerIntegrationTest extends CipherStreamControllerI
@Test @Test
public void testDecodeHill() throws Exception{ public void testDecodeHill() throws Exception{
mockMvc.perform(get(url + "/decode") mockMvc.perform(post(url + "/decode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -141,7 +141,7 @@ public class HillCipherControllerIntegrationTest extends CipherStreamControllerI
@Test @Test
public void testDecodeAdfgvx_error() throws Exception{ public void testDecodeAdfgvx_error() throws Exception{
mockMvc.perform(get(url + "/decode") mockMvc.perform(post(url + "/decode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)

View File

@@ -71,7 +71,7 @@ public class MorseCodeControllerIntegrationTest extends CipherStreamControllerIn
@Test @Test
public void testEncodeMorse() throws Exception{ public void testEncodeMorse() throws Exception{
mockMvc.perform(get(url + "/encode") mockMvc.perform(post(url + "/encode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -91,7 +91,7 @@ public class MorseCodeControllerIntegrationTest extends CipherStreamControllerIn
@Test @Test
public void testEncodeAdfgvx_error() throws Exception{ public void testEncodeAdfgvx_error() throws Exception{
mockMvc.perform(get(url + "/encode") mockMvc.perform(post(url + "/encode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -111,7 +111,7 @@ public class MorseCodeControllerIntegrationTest extends CipherStreamControllerIn
@Test @Test
public void testDecodeMorse() throws Exception{ public void testDecodeMorse() throws Exception{
mockMvc.perform(get(url + "/decode") mockMvc.perform(post(url + "/decode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -131,7 +131,7 @@ public class MorseCodeControllerIntegrationTest extends CipherStreamControllerIn
@Test @Test
public void testDecodeAdfgvx_error() throws Exception{ public void testDecodeAdfgvx_error() throws Exception{
mockMvc.perform(get(url + "/decode") mockMvc.perform(post(url + "/decode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)

View File

@@ -82,7 +82,7 @@ public class PlayfairCipherControllerIntegrationTest extends CipherStreamControl
@Test @Test
public void testEncodePlayfair() throws Exception{ public void testEncodePlayfair() throws Exception{
mockMvc.perform(get(url + "/encode") mockMvc.perform(post(url + "/encode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -102,7 +102,7 @@ public class PlayfairCipherControllerIntegrationTest extends CipherStreamControl
@Test @Test
public void testEncodeAdfgvx_error() throws Exception{ public void testEncodeAdfgvx_error() throws Exception{
mockMvc.perform(get(url + "/encode") mockMvc.perform(post(url + "/encode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -122,7 +122,7 @@ public class PlayfairCipherControllerIntegrationTest extends CipherStreamControl
@Test @Test
public void testDecodePlayfair() throws Exception{ public void testDecodePlayfair() throws Exception{
mockMvc.perform(get(url + "/decode") mockMvc.perform(post(url + "/decode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -142,7 +142,7 @@ public class PlayfairCipherControllerIntegrationTest extends CipherStreamControl
@Test @Test
public void testDecodeAdfgvx_error() throws Exception{ public void testDecodeAdfgvx_error() throws Exception{
mockMvc.perform(get(url + "/decode") mockMvc.perform(post(url + "/decode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)

View File

@@ -81,7 +81,7 @@ public class PolybiusSquareControllerIntegrationTest extends CipherStreamControl
@Test @Test
public void testEncodePolybius() throws Exception{ public void testEncodePolybius() throws Exception{
mockMvc.perform(get(url + "/encode") mockMvc.perform(post(url + "/encode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -101,7 +101,7 @@ public class PolybiusSquareControllerIntegrationTest extends CipherStreamControl
@Test @Test
public void testEncodeAdfgvx_error() throws Exception{ public void testEncodeAdfgvx_error() throws Exception{
mockMvc.perform(get(url + "/encode") mockMvc.perform(post(url + "/encode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -121,7 +121,7 @@ public class PolybiusSquareControllerIntegrationTest extends CipherStreamControl
@Test @Test
public void testDecodePolybius() throws Exception{ public void testDecodePolybius() throws Exception{
mockMvc.perform(get(url + "/decode") mockMvc.perform(post(url + "/decode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -141,7 +141,7 @@ public class PolybiusSquareControllerIntegrationTest extends CipherStreamControl
@Test @Test
public void testDecodeAdfgvx_error() throws Exception{ public void testDecodeAdfgvx_error() throws Exception{
mockMvc.perform(get(url + "/decode") mockMvc.perform(post(url + "/decode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)

View File

@@ -81,7 +81,7 @@ public class RailFenceControllerIntegrationTest extends CipherStreamControllerIn
@Test @Test
public void testEncodeRailFence() throws Exception{ public void testEncodeRailFence() throws Exception{
mockMvc.perform(get(url + "/encode") mockMvc.perform(post(url + "/encode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -101,7 +101,7 @@ public class RailFenceControllerIntegrationTest extends CipherStreamControllerIn
@Test @Test
public void testEncodeAdfgvx_error() throws Exception{ public void testEncodeAdfgvx_error() throws Exception{
mockMvc.perform(get(url + "/encode") mockMvc.perform(post(url + "/encode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -121,7 +121,7 @@ public class RailFenceControllerIntegrationTest extends CipherStreamControllerIn
@Test @Test
public void testDecodeRailFence() throws Exception{ public void testDecodeRailFence() throws Exception{
mockMvc.perform(get(url + "/decode") mockMvc.perform(post(url + "/decode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -141,7 +141,7 @@ public class RailFenceControllerIntegrationTest extends CipherStreamControllerIn
@Test @Test
public void testDecodeAdfgvx_error() throws Exception{ public void testDecodeAdfgvx_error() throws Exception{
mockMvc.perform(get(url + "/decode") mockMvc.perform(post(url + "/decode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)

View File

@@ -87,7 +87,7 @@ public class TrifidCipherControllerIntegrationTest extends CipherStreamControlle
@Test @Test
public void testEncodeTrifid() throws Exception{ public void testEncodeTrifid() throws Exception{
mockMvc.perform(get(url + "/encode") mockMvc.perform(post(url + "/encode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -107,7 +107,7 @@ public class TrifidCipherControllerIntegrationTest extends CipherStreamControlle
@Test @Test
public void testEncodeAdfgvx_error() throws Exception{ public void testEncodeAdfgvx_error() throws Exception{
mockMvc.perform(get(url + "/encode") mockMvc.perform(post(url + "/encode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -127,7 +127,7 @@ public class TrifidCipherControllerIntegrationTest extends CipherStreamControlle
@Test @Test
public void testDecodeTrifid() throws Exception{ public void testDecodeTrifid() throws Exception{
mockMvc.perform(get(url + "/decode") mockMvc.perform(post(url + "/decode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@@ -147,7 +147,7 @@ public class TrifidCipherControllerIntegrationTest extends CipherStreamControlle
@Test @Test
public void testDecodeAdfgvx_error() throws Exception{ public void testDecodeAdfgvx_error() throws Exception{
mockMvc.perform(get(url + "/decode") mockMvc.perform(post(url + "/decode")
.header("X-Request-Id", requestId) .header("X-Request-Id", requestId)
.header("X-Forwarded-For", ipAddress) .header("X-Forwarded-For", ipAddress)
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)