Update path mapping
This commit is contained in:
@@ -40,13 +40,14 @@ public class FullFilterIntegrationTest{
|
||||
@Mock
|
||||
private MDCAdapter mdc;
|
||||
//Fields
|
||||
private static final String url = "/caesar";
|
||||
private UUID requestId = UUID.randomUUID();
|
||||
private String ipAddresses = "192.168.1.1,192.168.1.2,192.168.1.3";
|
||||
|
||||
|
||||
@Test
|
||||
public void testDoFilterInternal() throws Exception{
|
||||
mockMvc.perform(get("/cipherStream/caesar")
|
||||
mockMvc.perform(get(url)
|
||||
.header("X-Request-Id", requestId)
|
||||
.header("X-Forwarded-For", ipAddresses)
|
||||
.param("param1", "value1")
|
||||
@@ -63,7 +64,7 @@ public class FullFilterIntegrationTest{
|
||||
|
||||
@Test
|
||||
public void testDoFilterInternal_NoParameters() throws Exception{
|
||||
mockMvc.perform(get("/cipherStream/caesar")
|
||||
mockMvc.perform(get(url)
|
||||
.header("X-Request-Id", requestId)
|
||||
.header("X-Forwarded-For", ipAddresses))
|
||||
.andExpect(status().isOk());
|
||||
|
||||
@@ -31,7 +31,7 @@ public class AdfgvxCipherControllerIntegrationTest extends CipherStreamControlle
|
||||
@Mock(name = "com.mattrixwv.cipherstream.controller.combination.AdfgvxCipherController")
|
||||
private Logger adfgvxLogger;
|
||||
//Fields
|
||||
private String url = "/cipherStream/adfgvx";
|
||||
private String url = "/adfgvx";
|
||||
private String decodedString = "Message to^encode";
|
||||
private String encodedString = "AXgvdavfxgagfa afag^aaxdxfgdagda";
|
||||
private String keyword = "keyword";
|
||||
|
||||
@@ -31,7 +31,7 @@ public class AdfgxCipherControllerIntegrationTest extends CipherStreamController
|
||||
@Mock(name = "com.mattrixwv.cipherstream.controller.combination.AdfgxCipherController")
|
||||
private Logger adfgxLogger;
|
||||
//Fields
|
||||
private String url = "/cipherStream/adfgx";
|
||||
private String url = "/adfgx";
|
||||
private String decodedString = "Message to^encode";
|
||||
private String encodedString = "AAgagadfagaxxd axdx^adafafxddgdf";
|
||||
private String keyword = "keyword";
|
||||
|
||||
@@ -31,7 +31,7 @@ public class AffineCipherControllerIntegrationTest extends CipherStreamControlle
|
||||
@Mock(name = "com.mattrixwv.cipherstream.controller.monosubstitution.AffineCipherController")
|
||||
private Logger affineLogger;
|
||||
//Fields
|
||||
private String url = "/cipherStream/affine";
|
||||
private String url = "/affine";
|
||||
private String decodedString = "Message to^encode";
|
||||
private String encodedString = "Pbtthlb yz^burzwb";
|
||||
private int key1 = 5;
|
||||
|
||||
@@ -31,7 +31,7 @@ public class AtbashCipherControllerIntegrationTest extends CipherStreamControlle
|
||||
@Mock(name = "com.mattrixwv.cipherstream.controller.monosubstitution.AtbashCipherController")
|
||||
protected Logger atbashLogger;
|
||||
//Fields
|
||||
private String url = "/cipherStream/atbash";
|
||||
private String url = "/atbash";
|
||||
private String decodedString = "Message to^encode";
|
||||
private String encodedString = "Nvhhztv gl^vmxlwv";
|
||||
private static final ObjectNode blankNode = mapper.createObjectNode();
|
||||
|
||||
@@ -31,7 +31,7 @@ public class AutokeyCipherControllerIntegrationTest extends CipherStreamControll
|
||||
@Mock(name = "com.mattrixwv.cipherstream.controller.monosubstitution.AutokeyCipherController")
|
||||
protected Logger autokeyLogger;
|
||||
//Fields
|
||||
private String url = "/cipherStream/autokey";
|
||||
private String url = "/autokey";
|
||||
private String decodedString = "Message to^encode";
|
||||
private String encodedString = "Wiqooxh fs^wfcuhx";
|
||||
private String keyword = "keyword";
|
||||
|
||||
@@ -31,7 +31,7 @@ public class BaconianCipherControllerIntegrationTest extends CipherStreamControl
|
||||
@Mock(name = "com.mattrixwv.cipherstream.controller.monosubstitution.BaconianCipherController")
|
||||
protected Logger baconianLogger;
|
||||
//Fields
|
||||
private String url = "/cipherStream/baconian";
|
||||
private String url = "/baconian";
|
||||
private String decodedString = "Message to^encode";
|
||||
private String encodedString = "ABABB aabaa baaab baaab aaaaa aabba aabaa baaba abbab aabaa abbaa aaaba abbab aaabb aabaa";
|
||||
private static final ObjectNode blankNode = mapper.createObjectNode();
|
||||
|
||||
@@ -31,7 +31,7 @@ public class BaseXCipherControllerIntegrationTest extends CipherStreamController
|
||||
@Mock(name = "com.mattrixwv.cipherstream.controller.monosubstitution.BaseXCipherController")
|
||||
protected Logger baseXLogger;
|
||||
//Fields
|
||||
private String url = "/cipherStream/basex";
|
||||
private String url = "/basex";
|
||||
private String decodedString = "A+B@C d\te\nf";
|
||||
private String encodedString = "1000001 101011 1000010 1000000 1000011 100000 1100100 1001 1100101 1010 1100110";
|
||||
private int base = 2;
|
||||
|
||||
@@ -31,7 +31,7 @@ public class BeaufortCipherControllerIntegrationTest extends CipherStreamControl
|
||||
@Mock(name = "com.mattrixwv.cipherstream.controller.monosubstitution.BeaufortCipherController")
|
||||
protected Logger beaufortLogger;
|
||||
//Fields
|
||||
private String url = "/cipherStream/beaufort";
|
||||
private String url = "/beaufort";
|
||||
private String decodedString = "Message to^encode";
|
||||
private String encodedString = "Yageolz rq^ujmdag";
|
||||
private String keyword = "Ke*y word";
|
||||
|
||||
@@ -31,7 +31,7 @@ public class CaesarCipherControllerIntegrationTest extends CipherStreamControlle
|
||||
@Mock(name = "com.mattrixwv.cipherstream.controller.monosubstitution.CaesarCipherController")
|
||||
protected Logger caesarLogger;
|
||||
//Fields
|
||||
private String url = "/cipherStream/caesar";
|
||||
private String url = "/caesar";
|
||||
private String decodedString = "The quick brown fox jumps over - the lazy dog";
|
||||
private String encodedString = "Qeb nrfzh yoltk clu grjmp lsbo - qeb ixwv ald";
|
||||
private int shiftAmount = 23;
|
||||
|
||||
@@ -31,7 +31,7 @@ public class OneTimePadCipherControllerIntegrationTest extends CipherStreamContr
|
||||
@Mock(name = "com.mattrixwv.cipherstream.controller.monosubstitution.OneTimePadCipherController")
|
||||
protected Logger oneTimePadLogger;
|
||||
//Fields
|
||||
private String url = "/cipherStream/oneTimePad";
|
||||
private String url = "/oneTimePad";
|
||||
private String decodedString = "Message to^encode";
|
||||
private String encodedString = "Wiqooxh mv^egkgws";
|
||||
private String keyword = "keywordThatIsTotallyRandom";
|
||||
|
||||
@@ -32,7 +32,7 @@ public class PortaCipherControllerIntegrationTest extends CipherStreamController
|
||||
@Mock(name = "com.mattrixwv.cipherstream.controller.monosubstitution.PortaCipherController")
|
||||
protected Logger portaLogger;
|
||||
//Fields
|
||||
private String url = "/cipherStream/porta";
|
||||
private String url = "/porta";
|
||||
private String decodedString = "Message to^encode";
|
||||
private String encodedString = "Rtghuos bm^qcwgrw";
|
||||
private String keyword = "keyword";
|
||||
|
||||
@@ -31,7 +31,7 @@ public class SubstitutionCipherControllerIntegrationTest extends CipherStreamCon
|
||||
@Mock(name = "com.mattrixwv.cipherstream.controller.monosubstitution.SubstitutionCipherController")
|
||||
protected Logger substitutionLogger;
|
||||
//Fields
|
||||
private String url = "/cipherStream/substitution";
|
||||
private String url = "/substitution";
|
||||
private String decodedString = "Message to^encode";
|
||||
private String encodedString = "Oguucig vq^gpeqfg";
|
||||
private String keyword = "cdefghijklmnopqrstuvwxyzab";
|
||||
|
||||
@@ -31,7 +31,7 @@ public class VigenereCipherControllerIntegrationTest extends CipherStreamControl
|
||||
@Mock(name = "com.mattrixwv.cipherstream.controller.monosubstitution.VigenereCipherController")
|
||||
protected Logger vigenereLogger;
|
||||
//Fields
|
||||
private String url = "/cipherStream/vigenere";
|
||||
private String url = "/vigenere";
|
||||
private String decodedString = "Message to^encode";
|
||||
private String encodedString = "Wiqooxh ds^cjqfgo";
|
||||
private String keyword = "keyword";
|
||||
|
||||
@@ -31,7 +31,7 @@ public class BifidCipherControllerIntegrationTest extends CipherStreamController
|
||||
@Mock(name = "com.mattrixwv.cipherstream.controller.polysubstitution.BifidCipherController")
|
||||
protected Logger bifidLogger;
|
||||
//Fields
|
||||
private String url = "/cipherStream/bifid";
|
||||
private String url = "/bifid";
|
||||
private String decodedString = "Message to^encode";
|
||||
private String encodedString = "Mqaokne kc^vdodzd";
|
||||
private String keyword = "keyword";
|
||||
|
||||
@@ -31,7 +31,7 @@ public class ColumnarCipherControllerIntegrationTest extends CipherStreamControl
|
||||
@Mock(name = "com.mattrixwv.cipherstream.controller.polysubstitution.ColumnarCipherController")
|
||||
protected Logger columnarLogger;
|
||||
//Fields
|
||||
private String url = "/cipherStream/columnar";
|
||||
private String url = "/columnar";
|
||||
private String decodedString = "Message to^encode";
|
||||
private String encodedString = "Edeomte ac^gosnse";
|
||||
private String keyword = "keyword";
|
||||
|
||||
@@ -31,7 +31,7 @@ public class HillCipherControllerIntegrationTest extends CipherStreamControllerI
|
||||
@Mock(name = "com.mattrixwv.cipherstream.controller.polysubstitution.HillCipherController")
|
||||
protected Logger hillLogger;
|
||||
//Fields
|
||||
private String url = "/cipherStream/hill";
|
||||
private String url = "/hill";
|
||||
private String decodedString = "Message to^encoded";
|
||||
private String encodedString = "Mgkeqge ul^ikhisplrd";
|
||||
private int[][] keyArray = new int[][]{{1, 4, 2}, {2, 4, 1}, {4, 1, 2}};
|
||||
|
||||
@@ -31,7 +31,7 @@ public class MorseCodeControllerIntegrationTest extends CipherStreamControllerIn
|
||||
@Mock(name = "com.mattrixwv.cipherstream.controller.polysubstitution.MorseCodeController")
|
||||
protected Logger morseLogger;
|
||||
//Fields
|
||||
private String url = "/cipherStream/morse";
|
||||
private String url = "/morse";
|
||||
private String decodedString = "Message to^encode123";
|
||||
private String encodedString = "-- . ... ... .- --. . - --- . -. -.-. --- -.. . .---- ..--- ...--";
|
||||
private static final ObjectNode blankNode = mapper.createObjectNode();
|
||||
|
||||
@@ -31,7 +31,7 @@ public class PlayfairCipherControllerIntegrationTest extends CipherStreamControl
|
||||
@Mock(name = "com.mattrixwv.cipherstream.controller.polysubstitution.PlayfairCipherController")
|
||||
protected Logger playfairLogger;
|
||||
//Fields
|
||||
private String url = "/cipherStream/playfair";
|
||||
private String url = "/playfair";
|
||||
private String decodedString = "Hide the gold in - the@tree+stump";
|
||||
private String decodedStringPadded = "Hide the gold in - the@trexe+stump";
|
||||
private String encodedString = "Bmod zbx dnab ek - udm@uixmm+ouvif";
|
||||
|
||||
@@ -31,7 +31,7 @@ public class PolybiusSquareControllerIntegrationTest extends CipherStreamControl
|
||||
@Mock(name = "com.mattrixwv.cipherstream.controller.polysubstitution.PolybiusSquareController")
|
||||
protected Logger polybiusLogger;
|
||||
//Fields
|
||||
private String url = "/cipherStream/polybius";
|
||||
private String url = "/polybius";
|
||||
private String decodedString = "Message to^encode";
|
||||
private String encodedString = "41124545233212 5115^124225152212";
|
||||
private String keyword = "keyword";
|
||||
|
||||
@@ -31,7 +31,7 @@ public class RailFenceControllerIntegrationTest extends CipherStreamControllerIn
|
||||
@Mock(name = "com.mattrixwv.cipherstream.controller.polysubstitution.RailFenceController")
|
||||
protected Logger railFenceLogger;
|
||||
//Fields
|
||||
private String url = "/cipherStream/railFence";
|
||||
private String url = "/railFence";
|
||||
private String decodedString = "Message to^encode";
|
||||
private String encodedString = "Maooesg te^cdsene";
|
||||
private int rails = 3;
|
||||
|
||||
@@ -31,7 +31,7 @@ public class TrifidCipherControllerIntegrationTest extends CipherStreamControlle
|
||||
@Mock(name = "com.mattrixwv.cipherstream.controller.polysubstitution.TrifidCipherController")
|
||||
protected Logger trifidLogger;
|
||||
//Fields
|
||||
private String url = "/cipherStream/trifid";
|
||||
private String url = "/trifid";
|
||||
private String decodedString = "Message to^encode+";
|
||||
private String encodedString = "Gqdokpd od^ljvflf+";
|
||||
private String keyword = "keyword";
|
||||
|
||||
Reference in New Issue
Block a user