Java Code Examples for org.apache.logging.log4j.junit.LoggerContextRule#createShutdownTimeoutLoggerContextRule()

The following examples show how to use org.apache.logging.log4j.junit.LoggerContextRule#createShutdownTimeoutLoggerContextRule() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RollingAppenderOnStartupTest.java    From logging-log4j2 with Apache License 2.0 4 votes vote down vote up
public RollingAppenderOnStartupTest() {
    this.loggerContextRule = LoggerContextRule.createShutdownTimeoutLoggerContextRule(CONFIG);
}
 
Example 2
Source File: RollingAppenderSizeTest.java    From logging-log4j2 with Apache License 2.0 4 votes vote down vote up
public RollingAppenderSizeTest(final String configFile, final String fileExtension, final boolean createOnDemand) {
    this.fileExtension = fileExtension;
    this.createOnDemand = createOnDemand;
    this.loggerContextRule = LoggerContextRule.createShutdownTimeoutLoggerContextRule(configFile);
    this.chain = loggerContextRule.withCleanFoldersRule(DIR);
}
 
Example 3
Source File: RandomRollingAppenderOnStartupTest.java    From logging-log4j2 with Apache License 2.0 4 votes vote down vote up
public RandomRollingAppenderOnStartupTest(final String configFile) {
    this.loggerContextRule = LoggerContextRule.createShutdownTimeoutLoggerContextRule(configFile);
}
 
Example 4
Source File: RollingAppenderCountTest.java    From logging-log4j2 with Apache License 2.0 4 votes vote down vote up
public RollingAppenderCountTest() {
    this.loggerContextRule = LoggerContextRule.createShutdownTimeoutLoggerContextRule(CONFIG);
}
 
Example 5
Source File: RollingAppenderNoUnconditionalDeleteTest.java    From logging-log4j2 with Apache License 2.0 4 votes vote down vote up
public RollingAppenderNoUnconditionalDeleteTest(final String configFile, final String dir) {
    this.directory = new File(dir);
    this.loggerContextRule = LoggerContextRule.createShutdownTimeoutLoggerContextRule(configFile);
    deleteDir();
    deleteDirParent();
}