Class JUnit3MethodProvider
java.lang.Object
com.carrotsearch.randomizedtesting.JUnit3MethodProvider
- All Implemented Interfaces:
TestMethodProvider
Method provider selecting tests that follow a name pattern of
test(.*)
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetTestMethods
(Class<?> suiteClass, ClassModel suiteClassModel) Determine which methods are test methods.
-
Constructor Details
-
JUnit3MethodProvider
public JUnit3MethodProvider()
-
-
Method Details
-
getTestMethods
Description copied from interface:TestMethodProvider
Determine which methods are test methods. The contract is that methods must be public, instance bound (not static) and parameterless. No other restrictions apply (as if these weren't enough...).- Specified by:
getTestMethods
in interfaceTestMethodProvider
- Parameters:
suiteClass
- The suite class.suiteClassModel
- A precomputed model of the suite class including method annotations and class hierarchy walking utilities. This is made available for performance reasons only.- Returns:
- Return a set of methods which should be invoked by the runner as tests.
-