On Aug 23, 2007, at 1:59 AM, Paul Smith wrote:

Right now, with svn updated in log4j/trunk, a 'mvn clean install' fails:

...
    [junit] Testcase: testProblemCharacters took 0.016 sec
    [junit] Testcase: testNDCWithCDATA took 0.008 sec
    [junit]     FAILED
    [junit] expected:<...> but was:<com.example.bar<>&"' ...>
[junit] junit.framework.ComparisonFailure: expected:<...> but was:<com.example.bar<>&"' ...> [junit] at org.apache.log4j.xml.XMLLayoutTest.testNDCWithCDATA (XMLLayoutTest.java:456)

[INFO] --------------------------------------------------------------------- ---
[ERROR] BUILD ERROR
[INFO] --------------------------------------------------------------------- ---
[INFO] Error executing ant tasks

Embedded error: The following error occurred while executing this line: /workspace/log4j/tests/build.xml:186: Test org.apache.log4j.CoreTestSuite failed



Hopefully fixed now. The test was picking up NDC content set on a previous test. Added setUp and tearDown methods that clear the NDC and MDC before and after the tests. Guess I only ran the test in isolation.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to