Make o.a.c.l.impl.SimpleLog Serializable.
Add more comprehensive unit tests for SimpleLog, including the ability to serialize and deserialize instances. This work will form the basis for making similar changes to the other Log implementations (and their corresponding test cases). git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138990 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
38
build.xml
38
build.xml
@@ -3,7 +3,7 @@
|
||||
|
||||
<!--
|
||||
"Logging" component of the Jakarta Commons Subproject
|
||||
$Id: build.xml,v 1.38 2003/05/22 13:55:28 rdonkin Exp $
|
||||
$Id: build.xml,v 1.39 2003/08/16 21:25:53 craigmcc Exp $
|
||||
-->
|
||||
|
||||
|
||||
@@ -396,15 +396,18 @@
|
||||
<!-- ========== Unit Test Targets ========================================= -->
|
||||
|
||||
|
||||
<target name="test" depends="compile.tests,test.jdk14,test.log4j,test.avalon
|
||||
" if="test.entry"
|
||||
<target name="test"
|
||||
depends="compile.tests,test.jdk14,test.log4j,test.simple,test.avalon"
|
||||
if="test.entry"
|
||||
description="Run all unit test cases">
|
||||
<java classname="${test.runner}" fork="yes" failonerror="${test.failonerror}">
|
||||
<arg value="${test.entry}"/>
|
||||
<java classname="${test.runner}" fork="yes"
|
||||
failonerror="${test.failonerror}">
|
||||
<arg value="${test.entry}"/>
|
||||
<classpath refid="test.classpath"/>
|
||||
</java>
|
||||
</target>
|
||||
|
||||
|
||||
<target name="test.jdk14" depends="compile.tests" if="jdk.1.4.present"
|
||||
description="Run unit tests specific to JDK 1.4 logging">
|
||||
|
||||
@@ -646,6 +649,31 @@
|
||||
|
||||
</target>
|
||||
|
||||
|
||||
<target name="test.simple" depends="compile.tests"
|
||||
description="Run unit tests specific to SimpleLog logging">
|
||||
|
||||
<echo message="Default Configuration (SimpleLog Selected)"/>
|
||||
<java classname="${test.runner}" fork="yes" failonerror="${test.failonerror}">
|
||||
<sysproperty key="org.apache.commons.logging.Log"
|
||||
value="org.apache.commons.logging.impl.SimpleLog"/>
|
||||
<arg value="org.apache.commons.logging.simple.DefaultConfigTestCase"/>
|
||||
<classpath refid="test.classpath"/>
|
||||
</java>
|
||||
|
||||
<echo message="Custom Configuration (SimpleLog Selected)"/>
|
||||
<java classname="${test.runner}" fork="yes" failonerror="${test.failonerror}">
|
||||
<sysproperty key="org.apache.commons.logging.Log"
|
||||
value="org.apache.commons.logging.simple.DecoratedSimpleLog"/>
|
||||
<sysproperty key="org.apache.commons.logging.simplelog.defaultlog"
|
||||
value="debug"/>
|
||||
<arg value="org.apache.commons.logging.simple.CustomConfigTestCase"/>
|
||||
<classpath refid="test.classpath"/>
|
||||
</java>
|
||||
|
||||
</target>
|
||||
|
||||
|
||||
<target name="test.avalon" depends="compile.tests" if="avalon-framework.present"
|
||||
description="Run unit tests specific to Avalon (Framework) logging">
|
||||
|
||||
|
||||
Reference in New Issue
Block a user