donaldp 2002/09/07 04:35:11
Modified: testcase/src/java/org/apache/avalon/excalibur/testcase
ExcaliburTestCase.java
Log:
Remove this. as it is uneeded
Revision Changes Path
1.5 +22 -22
jakarta-avalon-excalibur/testcase/src/java/org/apache/avalon/excalibur/testcase/ExcaliburTestCase.java
Index: ExcaliburTestCase.java
===================================================================
RCS file:
/home/cvs/jakarta-avalon-excalibur/testcase/src/java/org/apache/avalon/excalibur/testcase/ExcaliburTestCase.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- ExcaliburTestCase.java 13 Jun 2002 17:24:52 -0000 1.4
+++ ExcaliburTestCase.java 7 Sep 2002 11:35:11 -0000 1.5
@@ -240,9 +240,9 @@
{
super( name );
- ArrayList methodList = (ArrayList)ExcaliburTestCase.m_tests.get(
this.getClass() );
+ ArrayList methodList = (ArrayList)ExcaliburTestCase.m_tests.get(
getClass() );
- Method[] methods = this.getClass().getDeclaredMethods();
+ Method[] methods = getClass().getDeclaredMethods();
if( null == methodList )
{
@@ -260,7 +260,7 @@
}
}
- ExcaliburTestCase.m_tests.put( this.getClass(), methodList );
+ ExcaliburTestCase.m_tests.put( getClass(), methodList );
}
}
@@ -285,8 +285,8 @@
protected void prepare()
throws Exception
{
- final String resourceName = this.getClass().getName().replace( '.',
'/' ) + ".xtest";
- URL resource = this.getClass().getClassLoader().getResource(
resourceName );
+ final String resourceName = getClass().getName().replace( '.', '/' )
+ ".xtest";
+ URL resource = getClass().getClassLoader().getResource( resourceName
);
if( resource != null )
{
@@ -368,7 +368,7 @@
*/
final public void run( TestResult result )
{
- ArrayList methodList = (ArrayList)ExcaliburTestCase.m_tests.get(
this.getClass() );
+ ArrayList methodList = (ArrayList)ExcaliburTestCase.m_tests.get(
getClass() );
if( null == methodList || methodList.isEmpty() )
{
@@ -385,32 +385,32 @@
( (Initializable)this ).initialize();
}
- this.prepare();
+ prepare();
Iterator tests = methodList.iterator();
while( tests.hasNext() )
{
String methodName = (String)tests.next();
- this.setName( methodName );
+ setName( methodName );
setCurrentLogger( methodName );
- if( this.getLogger().isDebugEnabled() )
+ if( getLogger().isDebugEnabled() )
{
- this.getLogger().debug( "" );
- this.getLogger().debug(
"========================================" );
- this.getLogger().debug( " begin test: " + methodName );
- this.getLogger().debug(
"========================================" );
+ getLogger().debug( "" );
+ getLogger().debug(
"========================================" );
+ getLogger().debug( " begin test: " + methodName );
+ getLogger().debug(
"========================================" );
}
super.run( result );
- if( this.getLogger().isDebugEnabled() )
+ if( getLogger().isDebugEnabled() )
{
- this.getLogger().debug(
"========================================" );
- this.getLogger().debug( " end test: " + methodName );
- this.getLogger().debug(
"========================================" );
- this.getLogger().debug( "" );
+ getLogger().debug(
"========================================" );
+ getLogger().debug( " end test: " + methodName );
+ getLogger().debug(
"========================================" );
+ getLogger().debug( "" );
}
}
@@ -423,7 +423,7 @@
}
finally
{
- this.done();
+ done();
if( this instanceof Disposable )
{
@@ -439,7 +439,7 @@
}
methodList.clear();
- ExcaliburTestCase.m_tests.put( this.getClass(), methodList );
+ ExcaliburTestCase.m_tests.put( getClass(), methodList );
}
/**
@@ -514,7 +514,7 @@
if( value == null )
{
String clazz = confs[ i ].getAttribute( "class" );
- Object obj = this.getClass().getClassLoader().loadClass(
clazz ).newInstance();
+ Object obj = getClass().getClassLoader().loadClass( clazz
).newInstance();
context.put( key, obj );
if( getLogger().isInfoEnabled() )
getLogger().info( "ExcaliburTestCase: added an instance
of class " + clazz + " to context entry " + key );
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>