Update cipher logging

This commit is contained in:
2024-04-28 15:26:40 -04:00
parent 1183cab5f1
commit cc0aa2986d
26 changed files with 94 additions and 45 deletions

View File

@@ -116,7 +116,7 @@ public class AffineCipherControllerIntegrationTest extends CipherStreamControlle
verify(affineLogger, times(1)).info("Encoding {}", affineName);
verify(mdc, times(1)).put(CipherStreamLoggingAspect.CIPHER_NAME_LOGGING, affineName);
//Cipher Aspect
verify(aspectLogger, times(1)).info("CipherStream log {}", decodedNode);
verifyAspectLogging(decodedNode);
}
@Test
@@ -156,7 +156,7 @@ public class AffineCipherControllerIntegrationTest extends CipherStreamControlle
verify(affineLogger, times(1)).info("Decoding {}", affineName);
verify(mdc, times(1)).put(CipherStreamLoggingAspect.CIPHER_NAME_LOGGING, affineName);
//Cipher Aspect
verify(aspectLogger, times(1)).info("CipherStream log {}", encodedNode);
verifyAspectLogging(encodedNode);
}
@Test

View File

@@ -110,7 +110,7 @@ public class AtbashCipherControllerIntegrationTest extends CipherStreamControlle
verify(atbashLogger, times(1)).info("Encoding {}", atbashName);
verify(mdc, times(1)).put(CipherStreamLoggingAspect.CIPHER_NAME_LOGGING, atbashName);
//Cipher Aspect
verify(aspectLogger, times(1)).info("CipherStream log {}", decodedNode);
verifyAspectLogging(decodedNode);
}
@Test
@@ -150,7 +150,7 @@ public class AtbashCipherControllerIntegrationTest extends CipherStreamControlle
verify(atbashLogger, times(1)).info("Decoding {}", atbashName);
verify(mdc, times(1)).put(CipherStreamLoggingAspect.CIPHER_NAME_LOGGING, atbashName);
//Cipher Aspect
verify(aspectLogger, times(1)).info("CipherStream log {}", encodedNode);
verifyAspectLogging(encodedNode);
}
@Test

View File

@@ -113,7 +113,7 @@ public class AutokeyCipherControllerIntegrationTest extends CipherStreamControll
verify(autokeyLogger, times(1)).info("Encoding {}", autokeyName);
verify(mdc, times(1)).put(CipherStreamLoggingAspect.CIPHER_NAME_LOGGING, autokeyName);
//Cipher Aspect
verify(aspectLogger, times(1)).info("CipherStream log {}", decodedNode);
verifyAspectLogging(decodedNode);
}
@Test
@@ -153,7 +153,7 @@ public class AutokeyCipherControllerIntegrationTest extends CipherStreamControll
verify(autokeyLogger, times(1)).info("Decoding {}", autokeyName);
verify(mdc, times(1)).put(CipherStreamLoggingAspect.CIPHER_NAME_LOGGING, autokeyName);
//Cipher Aspect
verify(aspectLogger, times(1)).info("CipherStream log {}", encodedNode);
verifyAspectLogging(encodedNode);
}
@Test

View File

@@ -110,7 +110,7 @@ public class BaconianCipherControllerIntegrationTest extends CipherStreamControl
verify(baconianLogger, times(1)).info("Encoding {}", baconianName);
verify(mdc, times(1)).put(CipherStreamLoggingAspect.CIPHER_NAME_LOGGING, baconianName);
//Cipher Aspect
verify(aspectLogger, times(1)).info("CipherStream log {}", decodedNode);
verifyAspectLogging(decodedNode);
}
@Test
@@ -150,7 +150,7 @@ public class BaconianCipherControllerIntegrationTest extends CipherStreamControl
verify(baconianLogger, times(1)).info("Decoding {}", baconianName);
verify(mdc, times(1)).put(CipherStreamLoggingAspect.CIPHER_NAME_LOGGING, baconianName);
//Cipher Aspect
verify(aspectLogger, times(1)).info("CipherStream log {}", encodedNode);
verifyAspectLogging(encodedNode);
}
@Test

View File

@@ -113,7 +113,7 @@ public class BaseXCipherControllerIntegrationTest extends CipherStreamController
verify(baseXLogger, times(1)).info("Encoding {}", baseXName);
verify(mdc, times(1)).put(CipherStreamLoggingAspect.CIPHER_NAME_LOGGING, baseXName);
//Cipher Aspect
verify(aspectLogger, times(1)).info("CipherStream log {}", decodedNode);
verifyAspectLogging(decodedNode);
}
@Test
@@ -153,7 +153,7 @@ public class BaseXCipherControllerIntegrationTest extends CipherStreamController
verify(baseXLogger, times(1)).info("Decoding {}", baseXName);
verify(mdc, times(1)).put(CipherStreamLoggingAspect.CIPHER_NAME_LOGGING, baseXName);
//Cipher Aspect
verify(aspectLogger, times(1)).info("CipherStream log {}", encodedNode);
verifyAspectLogging(encodedNode);
}
@Test

View File

@@ -113,7 +113,7 @@ public class BeaufortCipherControllerIntegrationTest extends CipherStreamControl
verify(beaufortLogger, times(1)).info("Encoding {}", beaufortName);
verify(mdc, times(1)).put(CipherStreamLoggingAspect.CIPHER_NAME_LOGGING, beaufortName);
//Cipher Aspect
verify(aspectLogger, times(1)).info("CipherStream log {}", decodedNode);
verifyAspectLogging(decodedNode);
}
@Test
@@ -153,7 +153,7 @@ public class BeaufortCipherControllerIntegrationTest extends CipherStreamControl
verify(beaufortLogger, times(1)).info("Decoding {}", beaufortName);
verify(mdc, times(1)).put(CipherStreamLoggingAspect.CIPHER_NAME_LOGGING, beaufortName);
//Cipher Aspect
verify(aspectLogger, times(1)).info("CipherStream log {}", encodedNode);
verifyAspectLogging(encodedNode);
}
@Test

View File

@@ -113,7 +113,7 @@ public class CaesarCipherControllerIntegrationTest extends CipherStreamControlle
verify(caesarLogger, times(1)).info("Encoding {}", caesarName);
verify(mdc, times(1)).put(CipherStreamLoggingAspect.CIPHER_NAME_LOGGING, caesarName);
//Cipher Aspect
verify(aspectLogger, times(1)).info("CipherStream log {}", decodedNode);
verifyAspectLogging(decodedNode);
}
@Test
@@ -153,7 +153,7 @@ public class CaesarCipherControllerIntegrationTest extends CipherStreamControlle
verify(caesarLogger, times(1)).info("Decoding {}", caesarName);
verify(mdc, times(1)).put(CipherStreamLoggingAspect.CIPHER_NAME_LOGGING, caesarName);
//Cipher Aspect
verify(aspectLogger, times(1)).info("CipherStream log {}", encodedNode);
verifyAspectLogging(encodedNode);
}
@Test

View File

@@ -113,7 +113,7 @@ public class OneTimePadCipherControllerIntegrationTest extends CipherStreamContr
verify(oneTimePadLogger, times(1)).info("Encoding {}", oneTimePadName);
verify(mdc, times(1)).put(CipherStreamLoggingAspect.CIPHER_NAME_LOGGING, oneTimePadName);
//Cipher Aspect
verify(aspectLogger, times(1)).info("CipherStream log {}", decodedNode);
verifyAspectLogging(decodedNode);
}
@Test
@@ -153,7 +153,7 @@ public class OneTimePadCipherControllerIntegrationTest extends CipherStreamContr
verify(oneTimePadLogger, times(1)).info("Decoding {}", oneTimePadName);
verify(mdc, times(1)).put(CipherStreamLoggingAspect.CIPHER_NAME_LOGGING, oneTimePadName);
//Cipher Aspect
verify(aspectLogger, times(1)).info("CipherStream log {}", encodedNode);
verifyAspectLogging(encodedNode);
}
@Test

View File

@@ -118,7 +118,7 @@ public class PortaCipherControllerIntegrationTest extends CipherStreamController
verify(portaLogger, times(1)).info("Encoding {}", portaName);
verify(mdc, times(1)).put(CipherStreamLoggingAspect.CIPHER_NAME_LOGGING, portaName);
//Cipher Aspect
verify(aspectLogger, times(1)).info("CipherStream log {}", decodedNode);
verifyAspectLogging(decodedNode);
}
@Test
@@ -162,7 +162,7 @@ public class PortaCipherControllerIntegrationTest extends CipherStreamController
verify(portaLogger, times(1)).info("Decoding {}", portaName);
verify(mdc, times(1)).put(CipherStreamLoggingAspect.CIPHER_NAME_LOGGING, portaName);
//Cipher Aspect
verify(aspectLogger, times(1)).info("CipherStream log {}", encodedNode);
verifyAspectLogging(encodedNode);
}
@Test

View File

@@ -113,7 +113,7 @@ public class SubstitutionCipherControllerIntegrationTest extends CipherStreamCon
verify(substitutionLogger, times(1)).info("Encoding {}", substitutionName);
verify(mdc, times(1)).put(CipherStreamLoggingAspect.CIPHER_NAME_LOGGING, substitutionName);
//Cipher Aspect
verify(aspectLogger, times(1)).info("CipherStream log {}", decodedNode);
verifyAspectLogging(decodedNode);
}
@Test
@@ -153,7 +153,7 @@ public class SubstitutionCipherControllerIntegrationTest extends CipherStreamCon
verify(substitutionLogger, times(1)).info("Decoding {}", substitutionName);
verify(mdc, times(1)).put(CipherStreamLoggingAspect.CIPHER_NAME_LOGGING, substitutionName);
//Cipher Aspect
verify(aspectLogger, times(1)).info("CipherStream log {}", encodedNode);
verifyAspectLogging(encodedNode);
}
@Test

View File

@@ -113,7 +113,7 @@ public class VigenereCipherControllerIntegrationTest extends CipherStreamControl
verify(vigenereLogger, times(1)).info("Encoding {}", vigenereName);
verify(mdc, times(1)).put(CipherStreamLoggingAspect.CIPHER_NAME_LOGGING, vigenereName);
//Cipher Aspect
verify(aspectLogger, times(1)).info("CipherStream log {}", decodedNode);
verifyAspectLogging(decodedNode);
}
@Test
@@ -153,7 +153,7 @@ public class VigenereCipherControllerIntegrationTest extends CipherStreamControl
verify(vigenereLogger, times(1)).info("Decoding {}", vigenereName);
verify(mdc, times(1)).put(CipherStreamLoggingAspect.CIPHER_NAME_LOGGING, vigenereName);
//Cipher Aspect
verify(aspectLogger, times(1)).info("CipherStream log {}", encodedNode);
verifyAspectLogging(encodedNode);
}
@Test