assertEquals(str, includeContext, str.contains("ContextMap")); final Log4jLogEvent actual = new Log4jXmlObjectMapper().readValue(str, Log4jLogEvent.class); LogEventFixtures.assertEqualLogEvents(expected, actual, includeSource, includeContext, includeStacktrace); if (includeContext) { this.checkElement("MDC.A", "A_Value", compact, str);
assertEquals(str, includeContext, str.contains("contextMap")); final Log4jLogEvent actual = new Log4jYamlObjectMapper(contextMapAslist, includeStacktrace,false).readValue(str, Log4jLogEvent.class); LogEventFixtures.assertEqualLogEvents(expected, actual, includeSource, includeContext, includeStacktrace); if (includeContext) { this.checkMapEntry("MDC.A", "A_Value", compact, str);
assertEquals(str, includeContext, str.contains("contextMap")); final Log4jLogEvent actual = new Log4jJsonObjectMapper(contextMapAslist, includeStacktrace, false, false).readValue(str, Log4jLogEvent.class); LogEventFixtures.assertEqualLogEvents(expected, actual, locationInfo, includeContext, includeStacktrace); if (includeContext) { this.checkMapEntry("MDC.A", "A_Value", compact, str, contextMapAslist);