Attached is a small patch that:
1) Enables logging in the configured way during test preparation.
2) Shortens the log separators to fit better on a standard terminal window.
Ryan
Index: ExcaliburTestCase.java
===================================================================
RCS file:
/home/cvspublic/jakarta-avalon-excalibur/testcase/src/java/org/apache/avalon/excalibur/testcase/ExcaliburTestCase.java,v
retrieving revision 1.1
diff -u -r1.1 ExcaliburTestCase.java
--- ExcaliburTestCase.java 4 Apr 2002 05:09:05 -0000 1.1
+++ ExcaliburTestCase.java 10 Apr 2002 03:48:19 -0000
@@ -294,7 +294,9 @@
prepare( resource.openStream() );
}
else
+ {
getLogger().debug( "Resource not found " + resourceName );
+ }
}
/**
@@ -325,9 +327,14 @@
Context context = setupContext( conf.getChild( "context" ) );
- setupManagers( conf.getChild( "components" ), conf.getChild( "roles" ),
- conf.getChild( "logkit" ), context );
+ setupManagers( conf.getChild( "components" ),
+ conf.getChild( "roles" ),
+ conf.getChild( "logkit" ),
+ context );
+
manager = m_manager;
+
+ setCurrentLogger("prepare");
}
/**
@@ -392,18 +399,18 @@
if( this.getLogger().isDebugEnabled() )
{
this.getLogger().debug( "" );
- this.getLogger().debug(
"================================================================================" );
+ this.getLogger().debug(
+"========================================" );
this.getLogger().debug( " begin test: " + methodName );
- this.getLogger().debug(
"================================================================================" );
+ this.getLogger().debug(
+"========================================" );
}
super.run( result );
if( this.getLogger().isDebugEnabled() )
{
- this.getLogger().debug(
"================================================================================" );
+ this.getLogger().debug(
+"========================================" );
this.getLogger().debug( " end test: " + methodName );
- this.getLogger().debug(
"================================================================================" );
+ this.getLogger().debug(
+"========================================" );
this.getLogger().debug( "" );
}
}
@@ -460,7 +467,7 @@
else
{
logger = m_logKitManager.getLogger( "test." + name );
-
+
// Use the log priority in the conf file unless specified using the
m_logPriority
// property. This must be kept around for backwards compatibility.
if( m_logPriority != null )
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>