// This rule specifies if you want to count
// the number of unit test classes. This can
// be of value if you are working in an agile
// environment, ie. eXtreme Programming.
// The default setup is for the JUnit testing
// framework. It looks for unit test class
// which has to be extended.
...
class Foo extends junit.framework.TestCase
{
...
protected void setUp()
{
}
protected void tearDown()
{
}
public static Test suite()
{
TestSuite suite = new TestSuite();
suite.addTestSuite(Foo.class);
return suite;
}
public void testBlah()
{
...
assertEquals(<something>,
<value>);
}
...
}