org.jtiger.framework.junit
Class JUnitTestDefinition

java.lang.Object
  extended by 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

Constructor Summary
JUnitTestDefinition()
          Create a default instance of JUnitTestDefinition.
 
Method Summary
 boolean isTest(Method m)
          Returns true if the passed method is a test case designed for the JUnit Test Framework, false otherwise.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JUnitTestDefinition

public JUnitTestDefinition()
Create a default instance of JUnitTestDefinition.

Method Detail

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.