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
47
47
String logOutput = FileUtils .readFileToString (new File ("conditional.log" ));
48
48
assertTrue (logOutput .contains ("test prod log" ));
49
49
}
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
-
66
50
}
You can’t perform that action at this time.
0 commit comments