| |
|
| java.lang.Object org.apache.cactus.internal.util.TestCaseImplementChecker
TestCaseImplementChecker | final public class TestCaseImplementChecker (Code) | | Utilities to check TestCase implementation.
version: $Id: TestCaseImplementChecker.java 238991 2004-05-22 11:34:50Z vmassol $ |
Method Summary | |
public static void | checkAsBeginMethod(Method theMethod) Check if the method is suitable for a begin method. | public static void | checkAsEndMethod(Method theMethod) Check if the method is suitable for a end method. | public static void | checkTestName(Test theTest) Check if the Test to run is properly implemented or not. |
checkAsBeginMethod | public static void checkAsBeginMethod(Method theMethod) throws TestCaseImplementError(Code) | | Check if the method is suitable for a begin method.
Throws AssertionFailedError if at least one of following
conditions is failed:
- return type of the method is void
- the method is public
- the method accept a parameter of type
Request
Parameters: theMethod - the method to check throws: TestCaseImplementError - if the method is not suitablefor Cactus begin method |
checkAsEndMethod | public static void checkAsEndMethod(Method theMethod) throws TestCaseImplementError(Code) | | Check if the method is suitable for a end method.
Throws AssertionFailedError if at least one of following
conditions is failed:
- return type of the method is void
- the method is public
- the method accept one parameter
Parameters: theMethod - the method to check throws: TestCaseImplementError - if the method is not suitablefor Cactus end method |
|
|
|