We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6895260 commit 6bbfcafCopy full SHA for 6bbfcaf
log4j-core-test/src/test/java/org/apache/logging/log4j/core/ShutdownDisabledTest.java
@@ -33,7 +33,6 @@
33
import org.junit.jupiter.api.TestInfo;
34
35
@SetTestProperty(key = "log4j2.isWebapp", value = "false")
36
-@LoggerContextSource("log4j-test3.xml")
37
class ShutdownDisabledTest {
38
39
private static final Field shutdownCallbackField;
@@ -47,7 +46,8 @@ class ShutdownDisabledTest {
47
46
}
48
49
@Test
50
- void testShutdownFlag(final Configuration config, final LoggerContext ctx) throws NoSuchFieldException {
+ @LoggerContextSource("log4j-test3.xml")
+ void testShutdownFlag(final Configuration config, final LoggerContext ctx) {
51
assertThat(config.isShutdownHookEnabled())
52
.as("Shutdown hook is enabled")
53
.isFalse();
0 commit comments