Update dependencies and plugins
This commit is contained in:
@@ -37,7 +37,7 @@ public class CipherStreamLoggingAspect{
|
||||
@AfterReturning(pointcut = "cipherMethod() && postFunction()", returning = "returnedJson")
|
||||
public void getCipherInfo(ObjectNode returnedJson){
|
||||
//Extract JSON to MDC
|
||||
returnedJson.fields().forEachRemaining(entry -> {
|
||||
returnedJson.properties().forEach(entry -> {
|
||||
if(entry.getValue().isTextual()){
|
||||
MDC.put(entry.getKey(), entry.getValue().asText());
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ public class CipherStreamControllerIntegrationTestBase{
|
||||
|
||||
protected void verifyAspectLogging(ObjectNode jsonNode){
|
||||
//Verify the MDC
|
||||
jsonNode.fields().forEachRemaining(entry -> {
|
||||
jsonNode.properties().forEach(entry -> {
|
||||
if(entry.getValue().isTextual()){
|
||||
verify(mdc, times(1)).put(entry.getKey(), entry.getValue().asText());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user