|
51 | 51 | import static org.junit.Assert.assertEquals;
|
52 | 52 | import static org.junit.Assert.assertFalse;
|
53 | 53 | import static org.junit.Assert.assertNotNull;
|
54 |
| -import static org.junit.Assert.assertNull; |
55 | 54 | import static org.junit.Assert.assertThat;
|
56 | 55 | import static org.junit.Assert.assertTrue;
|
57 | 56 |
|
@@ -122,7 +121,6 @@ public void withFile() throws Exception {
|
122 | 121 | @Test
|
123 | 122 | public void testBasicConfigLocation() throws Exception {
|
124 | 123 | this.loggingSystem.beforeInitialize();
|
125 |
| - this.loggingSystem.initialize(this.initializationContext, null, null); |
126 | 124 | ILoggerFactory factory = StaticLoggerBinder.getSingleton().getLoggerFactory();
|
127 | 125 | LoggerContext context = (LoggerContext) factory;
|
128 | 126 | Logger root = context.getLogger(org.slf4j.Logger.ROOT_LOGGER_NAME);
|
@@ -307,19 +305,6 @@ public void customExceptionConversionWord() throws Exception {
|
307 | 305 | }
|
308 | 306 | }
|
309 | 307 |
|
310 |
| - @Test |
311 |
| - public void cleanUpStopsContext() throws Exception { |
312 |
| - this.loggingSystem.beforeInitialize(); |
313 |
| - this.loggingSystem.initialize(this.initializationContext, null, null); |
314 |
| - ILoggerFactory factory = StaticLoggerBinder.getSingleton().getLoggerFactory(); |
315 |
| - LoggerContext context = (LoggerContext) factory; |
316 |
| - Logger root = context.getLogger(org.slf4j.Logger.ROOT_LOGGER_NAME); |
317 |
| - assertNotNull(root.getAppender("CONSOLE")); |
318 |
| - |
319 |
| - this.loggingSystem.cleanUp(); |
320 |
| - assertNull(root.getAppender("CONSOLE")); |
321 |
| - } |
322 |
| - |
323 | 308 | private String getLineWithText(File file, String outputSearch) throws Exception {
|
324 | 309 | return getLineWithText(FileCopyUtils.copyToString(new FileReader(file)),
|
325 | 310 | outputSearch);
|
|
0 commit comments