diff --git a/log4j2/src/test/java/com/baeldung/logging/log4j2/tests/FailoverSyslogConsoleAppenderTest.java b/log4j2/src/test/java/com/baeldung/logging/log4j2/tests/FailoverSyslogConsoleAppenderTest.java index 72d32d76fb..0653394e5a 100644 --- a/log4j2/src/test/java/com/baeldung/logging/log4j2/tests/FailoverSyslogConsoleAppenderTest.java +++ b/log4j2/src/test/java/com/baeldung/logging/log4j2/tests/FailoverSyslogConsoleAppenderTest.java @@ -9,7 +9,6 @@ import org.junit.runners.JUnit4; @RunWith(JUnit4.class) public class FailoverSyslogConsoleAppenderTest { - @Rule public LoggerContextRule contextRule = new LoggerContextRule("log4j2-failover-syslog-console-appender_pattern-layout.xml"); diff --git a/log4j2/src/test/java/com/baeldung/logging/log4j2/tests/JDBCAppenderTest.java b/log4j2/src/test/java/com/baeldung/logging/log4j2/tests/JDBCAppenderTest.java index 2ceda2083b..1b8d33e2bf 100644 --- a/log4j2/src/test/java/com/baeldung/logging/log4j2/tests/JDBCAppenderTest.java +++ b/log4j2/src/test/java/com/baeldung/logging/log4j2/tests/JDBCAppenderTest.java @@ -16,7 +16,6 @@ import static org.junit.Assert.assertTrue; @RunWith(JUnit4.class) public class JDBCAppenderTest { - @Rule public LoggerContextRule contextRule = new LoggerContextRule("log4j2-jdbc-appender.xml");