vmassol 01/09/21 02:10:57
Modified: src/framework/share/org/apache/cactus AbstractTestCase.java
Log:
fix: log results now print correctly the name of the test case instance
Revision Changes Path
1.10 +7 -4
jakarta-cactus/src/framework/share/org/apache/cactus/AbstractTestCase.java
Index: AbstractTestCase.java
===================================================================
RCS file:
/home/cvs/jakarta-cactus/src/framework/share/org/apache/cactus/AbstractTestCase.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- AbstractTestCase.java 2001/09/14 20:14:28 1.9
+++ AbstractTestCase.java 2001/09/21 09:10:57 1.10
@@ -72,7 +72,7 @@
*
* @author <a href="mailto:[EMAIL PROTECTED]">Vincent Massol</a>
*
- * @version $Id: AbstractTestCase.java,v 1.9 2001/09/14 20:14:28 pier Exp $
+ * @version $Id: AbstractTestCase.java,v 1.10 2001/09/21 09:10:57 vmassol Exp $
*/
public abstract class AbstractTestCase extends TestCase
{
@@ -103,7 +103,7 @@
/**
* The logger (only used on the client side).
*/
- protected static Log logger;
+ protected Log logger;
/**
* Constructs a JUnit test case with the given name.
@@ -359,9 +359,12 @@
// side, so we instanciate the log for client side here.
if (!LogService.getInstance().isInitialized()) {
LogService.getInstance().init("/log_client.properties");
- this.logger =
- LogService.getInstance().getLog(this.getClass().getName());
}
+
+ // We make sure we reinitialize the logger with the name of the
+ // current class (that's why the logge instance is not static).
+ this.logger =
+ LogService.getInstance().getLog(this.getClass().getName());
// Catch the exception just to have a chance to log it
try {
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]