"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "log4j-1.2-api/src/test/java/org/apache/log4j/config/Log4j1ConfigurationFactoryTest.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).

Log4j1ConfigurationFactoryTest.java  (apache-log4j-2.11.1-src):Log4j1ConfigurationFactoryTest.java  (apache-log4j-2.11.2-src)
skipping to change at line 177 skipping to change at line 177
Files.deleteIfExists(tempFilePath); Files.deleteIfExists(tempFilePath);
try { try {
final Configuration configuration = getConfiguration("config-1.2/log 4j-system-properties-1.properties"); final Configuration configuration = getConfiguration("config-1.2/log 4j-system-properties-1.properties");
final RollingFileAppender appender = configuration.getAppender("RFA" ); final RollingFileAppender appender = configuration.getAppender("RFA" );
appender.stop(10, TimeUnit.SECONDS); appender.stop(10, TimeUnit.SECONDS);
System.out.println("expected: " + tempFileName + " Actual: " + appen der.getFileName()); System.out.println("expected: " + tempFileName + " Actual: " + appen der.getFileName());
assertEquals(tempFileName, appender.getFileName()); assertEquals(tempFileName, appender.getFileName());
} finally { } finally {
try { try {
Files.deleteIfExists(tempFilePath); Files.deleteIfExists(tempFilePath);
} catch (FileSystemException e) { } catch (final FileSystemException e) {
e.printStackTrace(); e.printStackTrace();
} }
} }
} }
@Test @Test
public void testSystemProperties2() throws Exception { public void testSystemProperties2() throws Exception {
final Configuration configuration = getConfiguration("config-1.2/ log4j-system-properties-2.properties"); final Configuration configuration = getConfiguration("config-1.2/ log4j-system-properties-2.properties");
final RollingFileAppender appender = configuration.getAppender("R FA"); final RollingFileAppender appender = configuration.getAppender("R FA");
assertEquals("${java.io.tmpdir}/hadoop.log", appender.getFileName ()); assertEquals("${java.io.tmpdir}/hadoop.log", appender.getFileName ());
 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)