`// This rule specifies if you want to count
// the number of unit tests (methods). 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 tests starting
// with 'test'
...
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>);
}
...
}
`