Author: carnold
Date: Wed Aug 22 16:00:24 2007
New Revision: 568763
URL: http://svn.apache.org/viewvc?rev=568763&view=rev
Log:
Bug 33502: Added test to confirm DOMConfigurator.configureAndWatch
Modified:
logging/log4j/trunk/src/changes/changes.xml
logging/log4j/trunk/tests/src/java/org/apache/log4j/xml/DOMTestCase.java
Modified: logging/log4j/trunk/src/changes/changes.xml
URL:
http://svn.apache.org/viewvc/logging/log4j/trunk/src/changes/changes.xml?rev=568763&r1=568762&r2=568763&view=diff
==============================================================================
--- logging/log4j/trunk/src/changes/changes.xml (original)
+++ logging/log4j/trunk/src/changes/changes.xml Wed Aug 22 16:00:24 2007
@@ -22,7 +22,8 @@
<body>
<release version="1.2.15" date="2007-06-27" description="SyslogAppender
enhancements, NTEventLogAppender and Maven build.">
- <action action="fix" issue="32527">Default initialization with XML file
halts program if JAXP not available.</action>
+ <action action="add" issue="33502">Added test to confirm that
DOMConfigurator.configureAndWatch does configure.</action>
+ <action action="fix" issue="32527">Default initialization with XML
file halts program if JAXP not available.</action>
<action action="add" issue="17531">Add reset option to
PropertyConfigurator and DOMConfigurator.</action>
<action action="fix" issue="14350">Error message always logged to
LogLog when calling close on TelnetAppender.</action>
<action action="add" issue="32572">Add configurable triggeringPolicy
for SMTPAppender.</action>
Modified:
logging/log4j/trunk/tests/src/java/org/apache/log4j/xml/DOMTestCase.java
URL:
http://svn.apache.org/viewvc/logging/log4j/trunk/tests/src/java/org/apache/log4j/xml/DOMTestCase.java?rev=568763&r1=568762&r2=568763&view=diff
==============================================================================
--- logging/log4j/trunk/tests/src/java/org/apache/log4j/xml/DOMTestCase.java
(original)
+++ logging/log4j/trunk/tests/src/java/org/apache/log4j/xml/DOMTestCase.java
Wed Aug 22 16:00:24 2007
@@ -299,4 +299,14 @@
assertNull(Logger.getRootLogger().getAppender("V1"));
}
+
+ /**
+ * Test checks that configureAndWatch does initial configuration, see bug
33502.
+ * @throws Exception if IO error.
+ */
+ public void testConfigureAndWatch() throws Exception {
+ DOMConfigurator.configureAndWatch("input/xml/DOMTestCase1.xml");
+ assertNotNull(Logger.getRootLogger().getAppender("A1"));
+ }
+
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]