git clone of logicmail with some fixes/features added
1//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2// This file is part of J2MEUnit, a Java 2 Micro Edition unit testing framework.
3//
4// J2MEUnit is free software distributed under the Common Public License (CPL).
5// It may be redistributed and/or modified under the terms of the CPL. You
6// should have received a copy of the license along with J2MEUnit. It is also
7// available from the website of the Open Source Initiative at
8// http://www.opensource.org.
9//
10// J2MEUnit is distributed in the hope that it will be useful, but WITHOUT ANY
11// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12// FOR A PARTICULAR PURPOSE.
13//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14package j2meunit.framework;
15
16/********************************************************************
17 * Wrapper interface for single test methods to alleviate the lack of reflection
18 * in J2ME. Adding test methods to test suites can be done by wrapping each
19 * single method in the run() method of an anonymous implementation of this
20 * interface.
21 *
22 * @author eso
23 */
24public interface TestMethod
25{
26 //~ Methods ----------------------------------------------------------------
27
28 /***************************************
29 * This is the method that needs to be implemented to invoke the actual test
30 * method of the TestCase class. This method should always invoke only a
31 * single test method (i.e. with a name starting with "test") on the given
32 * test case, and this should be exactly the method which has been defined
33 * by name when invoking the constructor.
34 */
35 public void run(TestCase rTestCase) throws Throwable;
36}