j2meunit.framework
Interface TestMethod


public interface TestMethod

Wrapper interface for single test methods to alleviate the lack of reflection in J2ME. Adding test methods to test suites can be done by wrapping each single method in the run() method of an anonymous implementation of this interface.

Author:
eso

Method Summary
 void run(TestCase rTestCase)
          This is the method that needs to be implemented to invoke the actual test method of the TestCase class.
 

Method Detail

run

public void run(TestCase rTestCase)
         throws java.lang.Throwable
This is the method that needs to be implemented to invoke the actual test method of the TestCase class. This method should always invoke only a single test method (i.e. with a name starting with "test") on the given test case, and this should be exactly the method which has been defined by name when invoking the constructor.

java.lang.Throwable