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