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

View File

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