You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Ajith Ranabahu <aj...@gmail.com> on 2004/12/01 04:47:53 UTC

FW: [Axis2] Best practices in writing unit tests

 

Hi all,

All of you who are interested in (and are already involved in) axis please
follow the best practices mentioned below, when writing unit tests.

 

1.The org.apache.axis.AbstractTestCase is considered as the base class for
all tests. All the test classes are to be sub classed from this.

2. This base class provides protected access to the test-resource
directories. Hence any directory reference should be taken from the base
class. However if a resource file needs to be accessed, the use of the
method getTestResourceFile(String relativePath) is recommended.

3. Name the test classes and methods sensibly :-)

 

Regards

 

Ajith