"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "log4j-jpa/src/test/java/org/apache/logging/log4j/core/appender/db/jpa/AbstractJpaAppenderTest.java" between
apache-log4j-2.11.1-src.tar.gz and apache-log4j-2.11.2-src.tar.gz

About: Apache Log4j 2 is a logging library for Java. Source distribution (Java).

AbstractJpaAppenderTest.java  (apache-log4j-2.11.1-src):AbstractJpaAppenderTest.java  (apache-log4j-2.11.2-src)
skipping to change at line 67 skipping to change at line 67
final LoggerContext context = LoggerContext.getContext(false); final LoggerContext context = LoggerContext.getContext(false);
if (context.getConfiguration() instanceof DefaultConfiguration) { if (context.getConfiguration() instanceof DefaultConfiguration) {
context.reconfigure(); context.reconfigure();
} }
StatusLogger.getLogger().reset(); StatusLogger.getLogger().reset();
} }
public void tearDown() throws SQLException { public void tearDown() throws SQLException {
final LoggerContext context = LoggerContext.getContext(false); final LoggerContext context = LoggerContext.getContext(false);
try { try {
String appenderName = "databaseAppender"; final String appenderName = "databaseAppender";
final Appender appender = context.getConfiguration().getAppender(app enderName); final Appender appender = context.getConfiguration().getAppender(app enderName);
assertNotNull("The appender '" + appenderName + "' should not be nul l.", appender); assertNotNull("The appender '" + appenderName + "' should not be nul l.", appender);
assertTrue("The appender should be a JpaAppender.", appender instanc eof JpaAppender); assertTrue("The appender should be a JpaAppender.", appender instanc eof JpaAppender);
((JpaAppender) appender).getManager().close(); ((JpaAppender) appender).getManager().close();
} finally { } finally {
System.clearProperty(ConfigurationFactory.CONFIGURATION_FILE_PROPERT Y); System.clearProperty(ConfigurationFactory.CONFIGURATION_FILE_PROPERT Y);
PropertiesUtil.getProperties().reload(); PropertiesUtil.getProperties().reload();
context.reconfigure(); context.reconfigure();
StatusLogger.getLogger().reset(); StatusLogger.getLogger().reset();
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)