ceki 02/04/25 14:17:37 Modified: tests build.xml tests/src/java/org/apache/log4j/util AbsoluteTimeFilter.java Compare.java ControlFilter.java Filter.java ISO8601Filter.java LineNumberFilter.java RelativeTimeFilter.java Transformer.java UnexpectedFormatException.java Added: tests/src/java/org/apache/log4j/util XMLTimestampFilter.java tests/src/java/org/apache/log4j/xml XMLLayoutTestCase.java tests/witness xmlLayout.1 xmlLayout.2 Log: - Added copyright info in src/java/org/apache/log4j/util/* - Added a new test case: XMLLayoutTestCase Revision Changes Path 1.13 +10 -1 jakarta-log4j/tests/build.xml Index: build.xml =================================================================== RCS file: /home/cvs/jakarta-log4j/tests/build.xml,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- build.xml 16 Apr 2002 16:39:46 -0000 1.12 +++ build.xml 25 Apr 2002 21:17:36 -0000 1.13 @@ -96,7 +96,8 @@ <!-- ================================================================= --> <target name="regression" depends="Minimum, Logger, DOM, CustomLevel, CustomLogger, PatternLayout, - HierarchyThreshold, SocketServer"/> + HierarchyThreshold, SocketServer, + XMLLayout"/> <!-- ================================================================= --> <!-- Unit tests test small parts of log4j for logical programming --> @@ -187,6 +188,14 @@ </junit> </sequential> </parallel> + </target> + + <target name="XMLLayout" depends="build"> + <junit printsummary="yes" fork="yes" haltonfailure="yes"> + <classpath refid="tests.classpath"/> + <formatter type="plain" usefile="false" /> + <test name="org.apache.log4j.xml.XMLLayoutTestCase" /> + </junit> </target> <!-- ================================================================= --> 1.2 +6 -0 jakarta-log4j/tests/src/java/org/apache/log4j/util/AbsoluteTimeFilter.java Index: AbsoluteTimeFilter.java =================================================================== RCS file: /home/cvs/jakarta-log4j/tests/src/java/org/apache/log4j/util/AbsoluteTimeFilter.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- AbsoluteTimeFilter.java 6 Apr 2002 17:52:07 -0000 1.1 +++ AbsoluteTimeFilter.java 25 Apr 2002 21:17:36 -0000 1.2 @@ -1,3 +1,9 @@ +/* + * Copyright (C) The Apache Software Foundation. All rights reserved. + * + * This software is published under the terms of the Apache Software + * License version 1.1, a copy of which has been included with this + * distribution in the LICENSE.txt file. */ package org.apache.log4j.util; 1.3 +6 -0 jakarta-log4j/tests/src/java/org/apache/log4j/util/Compare.java Index: Compare.java =================================================================== RCS file: /home/cvs/jakarta-log4j/tests/src/java/org/apache/log4j/util/Compare.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- Compare.java 22 Feb 2002 18:09:27 -0000 1.2 +++ Compare.java 25 Apr 2002 21:17:36 -0000 1.3 @@ -1,3 +1,9 @@ +/* + * Copyright (C) The Apache Software Foundation. All rights reserved. + * + * This software is published under the terms of the Apache Software + * License version 1.1, a copy of which has been included with this + * distribution in the LICENSE.txt file. */ package org.apache.log4j.util; 1.4 +6 -0 jakarta-log4j/tests/src/java/org/apache/log4j/util/ControlFilter.java Index: ControlFilter.java =================================================================== RCS file: /home/cvs/jakarta-log4j/tests/src/java/org/apache/log4j/util/ControlFilter.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- ControlFilter.java 11 Apr 2002 23:04:49 -0000 1.3 +++ ControlFilter.java 25 Apr 2002 21:17:36 -0000 1.4 @@ -1,3 +1,9 @@ +/* + * Copyright (C) The Apache Software Foundation. All rights reserved. + * + * This software is published under the terms of the Apache Software + * License version 1.1, a copy of which has been included with this + * distribution in the LICENSE.txt file. */ package org.apache.log4j.util; 1.5 +6 -0 jakarta-log4j/tests/src/java/org/apache/log4j/util/Filter.java Index: Filter.java =================================================================== RCS file: /home/cvs/jakarta-log4j/tests/src/java/org/apache/log4j/util/Filter.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- Filter.java 11 Apr 2002 23:04:49 -0000 1.4 +++ Filter.java 25 Apr 2002 21:17:36 -0000 1.5 @@ -1,3 +1,9 @@ +/* + * Copyright (C) The Apache Software Foundation. All rights reserved. + * + * This software is published under the terms of the Apache Software + * License version 1.1, a copy of which has been included with this + * distribution in the LICENSE.txt file. */ package org.apache.log4j.util; 1.4 +6 -0 jakarta-log4j/tests/src/java/org/apache/log4j/util/ISO8601Filter.java Index: ISO8601Filter.java =================================================================== RCS file: /home/cvs/jakarta-log4j/tests/src/java/org/apache/log4j/util/ISO8601Filter.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- ISO8601Filter.java 6 Apr 2002 17:52:07 -0000 1.3 +++ ISO8601Filter.java 25 Apr 2002 21:17:36 -0000 1.4 @@ -1,3 +1,9 @@ +/* + * Copyright (C) The Apache Software Foundation. All rights reserved. + * + * This software is published under the terms of the Apache Software + * License version 1.1, a copy of which has been included with this + * distribution in the LICENSE.txt file. */ package org.apache.log4j.util; 1.2 +6 -0 jakarta-log4j/tests/src/java/org/apache/log4j/util/LineNumberFilter.java Index: LineNumberFilter.java =================================================================== RCS file: /home/cvs/jakarta-log4j/tests/src/java/org/apache/log4j/util/LineNumberFilter.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- LineNumberFilter.java 18 Feb 2002 15:17:23 -0000 1.1 +++ LineNumberFilter.java 25 Apr 2002 21:17:36 -0000 1.2 @@ -1,3 +1,9 @@ +/* + * Copyright (C) The Apache Software Foundation. All rights reserved. + * + * This software is published under the terms of the Apache Software + * License version 1.1, a copy of which has been included with this + * distribution in the LICENSE.txt file. */ package org.apache.log4j.util; 1.3 +6 -0 jakarta-log4j/tests/src/java/org/apache/log4j/util/RelativeTimeFilter.java Index: RelativeTimeFilter.java =================================================================== RCS file: /home/cvs/jakarta-log4j/tests/src/java/org/apache/log4j/util/RelativeTimeFilter.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- RelativeTimeFilter.java 11 Apr 2002 23:04:49 -0000 1.2 +++ RelativeTimeFilter.java 25 Apr 2002 21:17:36 -0000 1.3 @@ -1,3 +1,9 @@ +/* + * Copyright (C) The Apache Software Foundation. All rights reserved. + * + * This software is published under the terms of the Apache Software + * License version 1.1, a copy of which has been included with this + * distribution in the LICENSE.txt file. */ package org.apache.log4j.util; 1.4 +6 -0 jakarta-log4j/tests/src/java/org/apache/log4j/util/Transformer.java Index: Transformer.java =================================================================== RCS file: /home/cvs/jakarta-log4j/tests/src/java/org/apache/log4j/util/Transformer.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- Transformer.java 4 Apr 2002 22:01:25 -0000 1.3 +++ Transformer.java 25 Apr 2002 21:17:36 -0000 1.4 @@ -1,3 +1,9 @@ +/* + * Copyright (C) The Apache Software Foundation. All rights reserved. + * + * This software is published under the terms of the Apache Software + * License version 1.1, a copy of which has been included with this + * distribution in the LICENSE.txt file. */ package org.apache.log4j.util; 1.2 +6 -0 jakarta-log4j/tests/src/java/org/apache/log4j/util/UnexpectedFormatException.java Index: UnexpectedFormatException.java =================================================================== RCS file: /home/cvs/jakarta-log4j/tests/src/java/org/apache/log4j/util/UnexpectedFormatException.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- UnexpectedFormatException.java 18 Feb 2002 15:17:23 -0000 1.1 +++ UnexpectedFormatException.java 25 Apr 2002 21:17:36 -0000 1.2 @@ -1,3 +1,9 @@ +/* + * Copyright (C) The Apache Software Foundation. All rights reserved. + * + * This software is published under the terms of the Apache Software + * License version 1.1, a copy of which has been included with this + * distribution in the LICENSE.txt file. */ package org.apache.log4j.util; 1.1 jakarta-log4j/tests/src/java/org/apache/log4j/util/XMLTimestampFilter.java Index: XMLTimestampFilter.java =================================================================== /* * Copyright (C) The Apache Software Foundation. All rights reserved. * * This software is published under the terms of the Apache Software * License version 1.1, a copy of which has been included with this * distribution in the LICENSE.txt file. */ package org.apache.log4j.util; import java.io.*; import org.apache.oro.text.perl.Perl5Util; public class XMLTimestampFilter implements Filter { Perl5Util util = new Perl5Util(); public String filter(String in) { if(util.match("/timestamp=\"\\d{10,13}\"/", in)) { return util.substitute("s/timestamp=\"\\d{10,13}\"/timestamp=\"XXX\"/", in); } else { return in; } } } 1.1 jakarta-log4j/tests/src/java/org/apache/log4j/xml/XMLLayoutTestCase.java Index: XMLLayoutTestCase.java =================================================================== package org.apache.log4j.xml; import junit.framework.TestCase; import junit.framework.TestSuite; import junit.framework.Test; import org.apache.log4j.Logger; import org.apache.log4j.Level; import org.apache.log4j.FileAppender; import org.apache.log4j.xml.XMLLayout; import org.apache.log4j.util.Filter; import org.apache.log4j.util.ControlFilter; import org.apache.log4j.util.XMLTimestampFilter; import org.apache.log4j.util.LineNumberFilter; import org.apache.log4j.util.Transformer; import org.apache.log4j.util.Compare; public class XMLLayoutTestCase extends TestCase { static String TEMP = "output/temp"; static String FILTERED = "output/filtered"; Logger root; Logger logger; public XMLLayoutTestCase(String name) { super(name); } public void setUp() { root = Logger.getRootLogger(); logger = Logger.getLogger(XMLLayoutTestCase.class); } public void tearDown() { root.getLoggerRepository().resetConfiguration(); } public void basic() throws Exception { XMLLayout xmlLayout = new XMLLayout(); root.addAppender(new FileAppender(xmlLayout, TEMP, false)); common(); Transformer.transform(TEMP, FILTERED, new Filter[] {new LineNumberFilter(), new XMLTimestampFilter()}); assertTrue(Compare.compare(FILTERED, "witness/xmlLayout.1")); } public void locationInfo() throws Exception { XMLLayout xmlLayout = new XMLLayout(); xmlLayout.setLocationInfo(true); root.addAppender(new FileAppender(xmlLayout, TEMP, false)); common(); Transformer.transform(TEMP, FILTERED, new XMLTimestampFilter()); assertTrue(Compare.compare(FILTERED, "witness/xmlLayout.2")); } void common() { int i = -1; X x = new X(); logger.debug("Message " + ++i); root.debug("Message " + i); logger.info ("Message " + ++i); root.info("Message " + i); logger.warn ("Message " + ++i); root.warn("Message " + i); logger.error("Message " + ++i); root.error("Message " + i); logger.log(Level.FATAL, "Message " + ++i); root.log(Level.FATAL, "Message " + i); Exception e = new Exception("Just testing"); logger.debug("Message " + ++i, e); root.debug("Message " + i, e); logger.error("Message " + ++i, e); root.error("Message " + i, e); } public static Test suite() { TestSuite suite = new TestSuite(); suite.addTest(new XMLLayoutTestCase("basic")); suite.addTest(new XMLLayoutTestCase("locationInfo")); return suite; } class X { Logger logger = Logger.getLogger(X.class); public X() { logger.info("in X() constructor"); } } } 1.1 jakarta-log4j/tests/witness/xmlLayout.1 Index: xmlLayout.1 =================================================================== <log4j:event category="org.apache.log4j.xml.XMLLayoutTestCase$X" timestamp="XXX" level="INFO" thread="main"> <log4j:message><![CDATA[in X() constructor]]></log4j:message> </log4j:event> <log4j:event category="org.apache.log4j.xml.XMLLayoutTestCase" timestamp="XXX" level="DEBUG" thread="main"> <log4j:message><![CDATA[Message 0]]></log4j:message> </log4j:event> <log4j:event category="root" timestamp="XXX" level="DEBUG" thread="main"> <log4j:message><![CDATA[Message 0]]></log4j:message> </log4j:event> <log4j:event category="org.apache.log4j.xml.XMLLayoutTestCase" timestamp="XXX" level="INFO" thread="main"> <log4j:message><![CDATA[Message 1]]></log4j:message> </log4j:event> <log4j:event category="root" timestamp="XXX" level="INFO" thread="main"> <log4j:message><![CDATA[Message 1]]></log4j:message> </log4j:event> <log4j:event category="org.apache.log4j.xml.XMLLayoutTestCase" timestamp="XXX" level="WARN" thread="main"> <log4j:message><![CDATA[Message 2]]></log4j:message> </log4j:event> <log4j:event category="root" timestamp="XXX" level="WARN" thread="main"> <log4j:message><![CDATA[Message 2]]></log4j:message> </log4j:event> <log4j:event category="org.apache.log4j.xml.XMLLayoutTestCase" timestamp="XXX" level="ERROR" thread="main"> <log4j:message><![CDATA[Message 3]]></log4j:message> </log4j:event> <log4j:event category="root" timestamp="XXX" level="ERROR" thread="main"> <log4j:message><![CDATA[Message 3]]></log4j:message> </log4j:event> <log4j:event category="org.apache.log4j.xml.XMLLayoutTestCase" timestamp="XXX" level="FATAL" thread="main"> <log4j:message><![CDATA[Message 4]]></log4j:message> </log4j:event> <log4j:event category="root" timestamp="XXX" level="FATAL" thread="main"> <log4j:message><![CDATA[Message 4]]></log4j:message> </log4j:event> <log4j:event category="org.apache.log4j.xml.XMLLayoutTestCase" timestamp="XXX" level="DEBUG" thread="main"> <log4j:message><![CDATA[Message 5]]></log4j:message> <log4j:throwable><![CDATA[java.lang.Exception: Just testing at org.apache.log4j.xml.XMLLayoutTestCase.common(XMLLayoutTestCase.java:XXX) at org.apache.log4j.xml.XMLLayoutTestCase.basic(XMLLayoutTestCase.java:XXX) at java.lang.reflect.Method.invoke(Native Method) at junit.framework.TestCase.runTest(TestCase.java:XXX) at junit.framework.TestCase.runBare(TestCase.java:XXX) at junit.framework.TestResult$1.protect(TestResult.java:XXX) at junit.framework.TestResult.runProtected(TestResult.java:XXX) at junit.framework.TestResult.run(TestResult.java:XXX) at junit.framework.TestCase.run(TestCase.java:XXX) at junit.framework.TestSuite.runTest(TestSuite.java:XXX) at junit.framework.TestSuite.run(TestSuite.java:XXX) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:XXX) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:XXX) ]]></log4j:throwable> </log4j:event> <log4j:event category="root" timestamp="XXX" level="DEBUG" thread="main"> <log4j:message><![CDATA[Message 5]]></log4j:message> <log4j:throwable><![CDATA[java.lang.Exception: Just testing at org.apache.log4j.xml.XMLLayoutTestCase.common(XMLLayoutTestCase.java:XXX) at org.apache.log4j.xml.XMLLayoutTestCase.basic(XMLLayoutTestCase.java:XXX) at java.lang.reflect.Method.invoke(Native Method) at junit.framework.TestCase.runTest(TestCase.java:XXX) at junit.framework.TestCase.runBare(TestCase.java:XXX) at junit.framework.TestResult$1.protect(TestResult.java:XXX) at junit.framework.TestResult.runProtected(TestResult.java:XXX) at junit.framework.TestResult.run(TestResult.java:XXX) at junit.framework.TestCase.run(TestCase.java:XXX) at junit.framework.TestSuite.runTest(TestSuite.java:XXX) at junit.framework.TestSuite.run(TestSuite.java:XXX) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:XXX) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:XXX) ]]></log4j:throwable> </log4j:event> <log4j:event category="org.apache.log4j.xml.XMLLayoutTestCase" timestamp="XXX" level="ERROR" thread="main"> <log4j:message><![CDATA[Message 6]]></log4j:message> <log4j:throwable><![CDATA[java.lang.Exception: Just testing at org.apache.log4j.xml.XMLLayoutTestCase.common(XMLLayoutTestCase.java:XXX) at org.apache.log4j.xml.XMLLayoutTestCase.basic(XMLLayoutTestCase.java:XXX) at java.lang.reflect.Method.invoke(Native Method) at junit.framework.TestCase.runTest(TestCase.java:XXX) at junit.framework.TestCase.runBare(TestCase.java:XXX) at junit.framework.TestResult$1.protect(TestResult.java:XXX) at junit.framework.TestResult.runProtected(TestResult.java:XXX) at junit.framework.TestResult.run(TestResult.java:XXX) at junit.framework.TestCase.run(TestCase.java:XXX) at junit.framework.TestSuite.runTest(TestSuite.java:XXX) at junit.framework.TestSuite.run(TestSuite.java:XXX) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:XXX) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:XXX) ]]></log4j:throwable> </log4j:event> <log4j:event category="root" timestamp="XXX" level="ERROR" thread="main"> <log4j:message><![CDATA[Message 6]]></log4j:message> <log4j:throwable><![CDATA[java.lang.Exception: Just testing at org.apache.log4j.xml.XMLLayoutTestCase.common(XMLLayoutTestCase.java:XXX) at org.apache.log4j.xml.XMLLayoutTestCase.basic(XMLLayoutTestCase.java:XXX) at java.lang.reflect.Method.invoke(Native Method) at junit.framework.TestCase.runTest(TestCase.java:XXX) at junit.framework.TestCase.runBare(TestCase.java:XXX) at junit.framework.TestResult$1.protect(TestResult.java:XXX) at junit.framework.TestResult.runProtected(TestResult.java:XXX) at junit.framework.TestResult.run(TestResult.java:XXX) at junit.framework.TestCase.run(TestCase.java:XXX) at junit.framework.TestSuite.runTest(TestSuite.java:XXX) at junit.framework.TestSuite.run(TestSuite.java:XXX) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:XXX) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:XXX) ]]></log4j:throwable> </log4j:event> 1.1 jakarta-log4j/tests/witness/xmlLayout.2 Index: xmlLayout.2 =================================================================== <log4j:event category="org.apache.log4j.xml.XMLLayoutTestCase$X" timestamp="XXX" level="INFO" thread="main"> <log4j:message><![CDATA[in X() constructor]]></log4j:message> <log4j:locationInfo class="org.apache.log4j.xml.XMLLayoutTestCase$X" method="<init>" file="XMLLayoutTestCase.java" line="98"/> </log4j:event> <log4j:event category="org.apache.log4j.xml.XMLLayoutTestCase" timestamp="XXX" level="DEBUG" thread="main"> <log4j:message><![CDATA[Message 0]]></log4j:message> <log4j:locationInfo class="org.apache.log4j.xml.XMLLayoutTestCase" method="common" file="XMLLayoutTestCase.java" line="63"/> </log4j:event> <log4j:event category="root" timestamp="XXX" level="DEBUG" thread="main"> <log4j:message><![CDATA[Message 0]]></log4j:message> <log4j:locationInfo class="org.apache.log4j.xml.XMLLayoutTestCase" method="common" file="XMLLayoutTestCase.java" line="64"/> </log4j:event> <log4j:event category="org.apache.log4j.xml.XMLLayoutTestCase" timestamp="XXX" level="INFO" thread="main"> <log4j:message><![CDATA[Message 1]]></log4j:message> <log4j:locationInfo class="org.apache.log4j.xml.XMLLayoutTestCase" method="common" file="XMLLayoutTestCase.java" line="66"/> </log4j:event> <log4j:event category="root" timestamp="XXX" level="INFO" thread="main"> <log4j:message><![CDATA[Message 1]]></log4j:message> <log4j:locationInfo class="org.apache.log4j.xml.XMLLayoutTestCase" method="common" file="XMLLayoutTestCase.java" line="67"/> </log4j:event> <log4j:event category="org.apache.log4j.xml.XMLLayoutTestCase" timestamp="XXX" level="WARN" thread="main"> <log4j:message><![CDATA[Message 2]]></log4j:message> <log4j:locationInfo class="org.apache.log4j.xml.XMLLayoutTestCase" method="common" file="XMLLayoutTestCase.java" line="69"/> </log4j:event> <log4j:event category="root" timestamp="XXX" level="WARN" thread="main"> <log4j:message><![CDATA[Message 2]]></log4j:message> <log4j:locationInfo class="org.apache.log4j.xml.XMLLayoutTestCase" method="common" file="XMLLayoutTestCase.java" line="70"/> </log4j:event> <log4j:event category="org.apache.log4j.xml.XMLLayoutTestCase" timestamp="XXX" level="ERROR" thread="main"> <log4j:message><![CDATA[Message 3]]></log4j:message> <log4j:locationInfo class="org.apache.log4j.xml.XMLLayoutTestCase" method="common" file="XMLLayoutTestCase.java" line="72"/> </log4j:event> <log4j:event category="root" timestamp="XXX" level="ERROR" thread="main"> <log4j:message><![CDATA[Message 3]]></log4j:message> <log4j:locationInfo class="org.apache.log4j.xml.XMLLayoutTestCase" method="common" file="XMLLayoutTestCase.java" line="73"/> </log4j:event> <log4j:event category="org.apache.log4j.xml.XMLLayoutTestCase" timestamp="XXX" level="FATAL" thread="main"> <log4j:message><![CDATA[Message 4]]></log4j:message> <log4j:locationInfo class="org.apache.log4j.xml.XMLLayoutTestCase" method="common" file="XMLLayoutTestCase.java" line="75"/> </log4j:event> <log4j:event category="root" timestamp="XXX" level="FATAL" thread="main"> <log4j:message><![CDATA[Message 4]]></log4j:message> <log4j:locationInfo class="org.apache.log4j.xml.XMLLayoutTestCase" method="common" file="XMLLayoutTestCase.java" line="76"/> </log4j:event> <log4j:event category="org.apache.log4j.xml.XMLLayoutTestCase" timestamp="XXX" level="DEBUG" thread="main"> <log4j:message><![CDATA[Message 5]]></log4j:message> <log4j:throwable><![CDATA[java.lang.Exception: Just testing at org.apache.log4j.xml.XMLLayoutTestCase.common(XMLLayoutTestCase.java:78) at org.apache.log4j.xml.XMLLayoutTestCase.locationInfo(XMLLayoutTestCase.java:53) at java.lang.reflect.Method.invoke(Native Method) at junit.framework.TestCase.runTest(TestCase.java:166) at junit.framework.TestCase.runBare(TestCase.java:140) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:131) at junit.framework.TestSuite.runTest(TestSuite.java:173) at junit.framework.TestSuite.run(TestSuite.java:168) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:231) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:409) ]]></log4j:throwable> <log4j:locationInfo class="org.apache.log4j.xml.XMLLayoutTestCase" method="common" file="XMLLayoutTestCase.java" line="79"/> </log4j:event> <log4j:event category="root" timestamp="XXX" level="DEBUG" thread="main"> <log4j:message><![CDATA[Message 5]]></log4j:message> <log4j:throwable><![CDATA[java.lang.Exception: Just testing at org.apache.log4j.xml.XMLLayoutTestCase.common(XMLLayoutTestCase.java:78) at org.apache.log4j.xml.XMLLayoutTestCase.locationInfo(XMLLayoutTestCase.java:53) at java.lang.reflect.Method.invoke(Native Method) at junit.framework.TestCase.runTest(TestCase.java:166) at junit.framework.TestCase.runBare(TestCase.java:140) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:131) at junit.framework.TestSuite.runTest(TestSuite.java:173) at junit.framework.TestSuite.run(TestSuite.java:168) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:231) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:409) ]]></log4j:throwable> <log4j:locationInfo class="org.apache.log4j.xml.XMLLayoutTestCase" method="common" file="XMLLayoutTestCase.java" line="80"/> </log4j:event> <log4j:event category="org.apache.log4j.xml.XMLLayoutTestCase" timestamp="XXX" level="ERROR" thread="main"> <log4j:message><![CDATA[Message 6]]></log4j:message> <log4j:throwable><![CDATA[java.lang.Exception: Just testing at org.apache.log4j.xml.XMLLayoutTestCase.common(XMLLayoutTestCase.java:78) at org.apache.log4j.xml.XMLLayoutTestCase.locationInfo(XMLLayoutTestCase.java:53) at java.lang.reflect.Method.invoke(Native Method) at junit.framework.TestCase.runTest(TestCase.java:166) at junit.framework.TestCase.runBare(TestCase.java:140) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:131) at junit.framework.TestSuite.runTest(TestSuite.java:173) at junit.framework.TestSuite.run(TestSuite.java:168) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:231) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:409) ]]></log4j:throwable> <log4j:locationInfo class="org.apache.log4j.xml.XMLLayoutTestCase" method="common" file="XMLLayoutTestCase.java" line="82"/> </log4j:event> <log4j:event category="root" timestamp="XXX" level="ERROR" thread="main"> <log4j:message><![CDATA[Message 6]]></log4j:message> <log4j:throwable><![CDATA[java.lang.Exception: Just testing at org.apache.log4j.xml.XMLLayoutTestCase.common(XMLLayoutTestCase.java:78) at org.apache.log4j.xml.XMLLayoutTestCase.locationInfo(XMLLayoutTestCase.java:53) at java.lang.reflect.Method.invoke(Native Method) at junit.framework.TestCase.runTest(TestCase.java:166) at junit.framework.TestCase.runBare(TestCase.java:140) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:131) at junit.framework.TestSuite.runTest(TestSuite.java:173) at junit.framework.TestSuite.run(TestSuite.java:168) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:231) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:409) ]]></log4j:throwable> <log4j:locationInfo class="org.apache.log4j.xml.XMLLayoutTestCase" method="common" file="XMLLayoutTestCase.java" line="83"/> </log4j:event>
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>