@@ -205,27 +205,6 @@ public void contextRename() throws JoranException {
205205 assertEquals ("wombat" , loggerContext .getName ());
206206 }
207207
208- // DISABLED TEMPORARILY 2022-09-30
209- @ Disabled
210- @ Test
211- public void eval () throws JoranException {
212- configure (ClassicTestConstants .JORAN_INPUT_PREFIX + "callerData.xml" );
213- String msg = "hello world" ;
214- logger .debug ("toto" );
215- logger .debug (msg );
216-
217- StringListAppender <ILoggingEvent > slAppender = (StringListAppender <ILoggingEvent >) loggerContext
218- .getLogger ("root" ).getAppender ("STR_LIST" );
219- assertNotNull (slAppender );
220- assertEquals (2 , slAppender .strList .size ());
221- assertTrue (slAppender .strList .get (0 ).contains (" DEBUG - toto" ));
222-
223- String str1 = slAppender .strList .get (1 );
224- assertTrue (str1 .contains ("Caller+0" ));
225- assertTrue (str1 .contains (" DEBUG - hello world" ));
226- }
227-
228-
229208 @ Test
230209 public void missingConfigurationElement () throws JoranException {
231210 configure (ClassicTestConstants .JORAN_INPUT_PREFIX + "ossfuzz/noConfig.xml" );
@@ -299,45 +278,7 @@ public void testLevelFilter() throws JoranException {
299278 assertEquals ("hello" , back .getMessage ());
300279 }
301280
302- // DISABLED TEMPORARILY 2022-09-30
303- @ Disabled
304- @ Test
305- public void testEvaluatorFilter () throws JoranException {
306- configure (ClassicTestConstants .JORAN_INPUT_PREFIX + "evaluatorFilter.xml" );
307-
308- // StatusPrinter.print(loggerContext);
309-
310- logger .warn ("hello" );
311- logger .error ("to be ignored" );
312-
313- ListAppender <ILoggingEvent > listAppender = (ListAppender <ILoggingEvent >) root .getAppender ("LIST" );
314-
315- assertNotNull (listAppender );
316- assertEquals (1 , listAppender .list .size ());
317- ILoggingEvent back = listAppender .list .get (0 );
318- assertEquals (Level .WARN , back .getLevel ());
319- assertEquals ("hello" , back .getMessage ());
320- }
321-
322- // DISABLED TEMPORARILY 2022-09-30
323- @ Disabled
324- @ Test
325- public void testEvaluatorFilterWithImports () throws JoranException {
326- configure (ClassicTestConstants .JORAN_INPUT_PREFIX + "evaluatorFilterWithImports.xml" );
327-
328- // StatusPrinter.print(loggerContext);
329-
330- logger .warn ("hello" );
331- logger .error ("to be ignored" );
332281
333- ListAppender <ILoggingEvent > listAppender = (ListAppender <ILoggingEvent >) root .getAppender ("LIST" );
334-
335- assertNotNull (listAppender );
336- assertEquals (1 , listAppender .list .size ());
337- ILoggingEvent back = listAppender .list .get (0 );
338- assertEquals (Level .WARN , back .getLevel ());
339- assertEquals ("hello" , back .getMessage ());
340- }
341282
342283 @ Test
343284 public void testTurboDynamicThreshold () throws JoranException {
@@ -477,8 +418,8 @@ public void levelChangePropagator1() throws JoranException, IOException, Interru
477418 verifyJULLevel (Logger .ROOT_LOGGER_NAME , Level .TRACE );
478419 }
479420
421+ @ Disabled // because slow
480422 @ Test
481- @ Disabled
482423 public void onConsoleRetro () throws JoranException , IOException , InterruptedException {
483424 String configFileAsStr = ClassicTestConstants .JORAN_INPUT_PREFIX + "/onConsoleRetro.xml" ;
484425 configure (configFileAsStr );
@@ -582,54 +523,6 @@ public void shutdownHookTest() throws JoranException {
582523 assertNotNull (thread );
583524 }
584525
585- // DISABLED TEMPORARILY 2022-09-30
586- @ Disabled
587- @ Test
588- public void conditional1673 () throws JoranException {
589- loggerContext .putProperty ("EXTRA" , "true" );
590- String configFileAsStr = ClassicTestConstants .JORAN_INPUT_PREFIX + "issues/logback_1673.xml" ;
591- configure (configFileAsStr );
592- }
593-
594- // DISABLED TEMPORARILY 2022-09-30
595- @ Disabled
596- @ Test
597- public void conditional1673bisWithActiveThen () throws JoranException {
598- loggerContext .putProperty ("EXTRA" , "true" );
599- String configFileAsStr = ClassicTestConstants .JORAN_INPUT_PREFIX + "issues/logback_1673bis.xml" ;
600- configure (configFileAsStr );
601- Logger root = loggerContext .getLogger (Logger .ROOT_LOGGER_NAME );
602- ListAppender <ILoggingEvent > listThen = (ListAppender <ILoggingEvent >) root .getAppender ("LIST_THEN" );
603- assertNotNull (listThen );
604-
605- ListAppender <ILoggingEvent > listElse = (ListAppender <ILoggingEvent >) root .getAppender ("LIST_ELSE" );
606- assertNull (listElse );
607- }
608-
609- // DISABLED TEMPORARILY 2022-09-30
610- @ Disabled
611- @ Test
612- public void conditional1673bisWithActiveElse () throws JoranException {
613- String configFileAsStr = ClassicTestConstants .JORAN_INPUT_PREFIX + "issues/logback_1673bis.xml" ;
614- configure (configFileAsStr );
615- Logger root = loggerContext .getLogger (Logger .ROOT_LOGGER_NAME );
616- ListAppender <ILoggingEvent > listThen = (ListAppender <ILoggingEvent >) root .getAppender ("LIST_THEN" );
617- assertNull (listThen );
618-
619- ListAppender <ILoggingEvent > listElse = (ListAppender <ILoggingEvent >) root .getAppender ("LIST_ELSE" );
620- assertNotNull (listElse );
621- }
622-
623- // DISABLED TEMPORARILY 2022-09-30
624- @ Disabled
625- @ Test
626- public void nestedIf () throws JoranException {
627- loggerContext .putProperty ("EXTRA" , "true" );
628- String configFileAsStr = ClassicTestConstants .JORAN_INPUT_PREFIX + "issues/logback_1678.xml" ;
629- configure (configFileAsStr );
630- StatusPrinter .print (loggerContext );
631-
632- }
633526
634527 @ Test
635528 public void nestedAppendersDisallowed () throws JoranException {
0 commit comments