File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed
logging-modules/logback/src/test/java/com/baeldung/logback Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -47,20 +47,4 @@ public void whenSystemPropertyIsPresent_thenReturnFileLogger() throws IOExceptio
4747 String logOutput = FileUtils .readFileToString (new File ("conditional.log" ));
4848 assertTrue (logOutput .contains ("test prod log" ));
4949 }
50-
51- @ Test
52- public void whenMatchedWithEvaluatorFilter_thenReturnFilteredLogs () throws IOException {
53- logger = (Logger ) LoggerFactory .getLogger (ConditionalLoggingUnitTest .class );
54-
55- logger .info ("normal log" );
56- logger .info ("billing details: XXXX" );
57- String normalLog = FileUtils .readFileToString (new File ("conditional.log" ));
58- assertTrue (normalLog .contains ("normal log" ));
59- assertTrue (normalLog .contains ("billing details: XXXX" ));
60-
61- String filteredLog = FileUtils .readFileToString (new File ("filtered.log" ));
62- assertTrue (filteredLog .contains ("test prod log" ));
63- //assertFalse(filteredLog.contains("billing details: XXXX"));
64- }
65-
6650}
You can’t perform that action at this time.
0 commit comments