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

@@ -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)

View File

@@ -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)

View File

@@ -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)

View File

@@ -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)

View File

@@ -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)

View File

@@ -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)

View File

@@ -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)

View File

@@ -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)

View File

@@ -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)

View File

@@ -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)

View File

@@ -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)