org.jtiger.framework.junit
Class JUnitTestDefinition
java.lang.Object
org.jtiger.framework.junit.JUnitTestDefinition
- All Implemented Interfaces:
- TestDefinition
public final class JUnitTestDefinition
- extends Object
- implements TestDefinition
This implementation of TestDefinition
is intended to be used to execute test cases that
have been written using the JUnit Test Framework. The implementation is
passed to the framework by returning an instance from
FixturesRunnerConfig.getDefinitionClass()
or by passing the qualified class name as
the appropriate argument
on the command line to
the framework main method
.
- Version:
- 2.1
Build Number 0376
Build Time 2006-07-28 01:50.16.218 CET (GMT + 1)
- Author:
- Tony Morris
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JUnitTestDefinition
public JUnitTestDefinition()
- Create a default instance of JUnitTestDefinition.
isTest
public boolean isTest(Method m)
- Returns
true
if the passed method is a test case designed for
the JUnit Test Framework, false
otherwise. This means that
the method name begins with "test" .
- Specified by:
isTest
in interface TestDefinition
- Parameters:
m
- The method to check if it is a test case designed for
the JUnit Test Framework.
- Returns:
true
if the passed method is a test case designed for
the JUnit Test Framework, false
otherwise.