public class ParameterisedTestClassRunner extends Object
| Modifier and Type | Field and Description | 
|---|---|
protected Map<TestMethod,ParameterisedTestMethodRunner> | 
parameterisedMethods  | 
protected Map<org.junit.runners.model.FrameworkMethod,TestMethod> | 
testMethods  | 
protected List<TestMethod> | 
testMethodsList  | 
| Constructor and Description | 
|---|
ParameterisedTestClassRunner(org.junit.runners.model.TestClass testClass)
Creates a runner for a given test class. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
List<org.junit.runners.model.FrameworkMethod> | 
computeFrameworkMethods()
Returns a list of  
FrameworkMethods. | 
protected void | 
computeTestMethods(org.junit.runners.model.TestClass testClass)  | 
org.junit.runner.Description | 
describeParameterisedMethod(org.junit.runners.model.FrameworkMethod method)
Returns description of a parameterised method. 
 | 
org.junit.runners.model.Statement | 
parameterisedMethodInvoker(org.junit.runners.model.FrameworkMethod method,
                          Object testClass)
Returns a InvokeParameterisedMethod for parameterised methods and null
 for nonparameterised 
 | 
List<org.junit.runners.model.FrameworkMethod> | 
returnListOfMethods()
Returns a list of  
FrameworkMethods - once per method, like
 there were no parameters. | 
void | 
runParameterisedTest(TestMethod method,
                    org.junit.runners.model.Statement methodInvoker,
                    org.junit.runner.notification.RunNotifier notifier)
Executes parameterised method. 
 | 
boolean | 
shouldRun(TestMethod testMethod)
Tells if method should be run by this runner. 
 | 
TestMethod | 
testMethodFor(org.junit.runners.model.FrameworkMethod method)
Returns a cached TestMethod object related to the given FrameworkMethod. 
 | 
protected Map<TestMethod,ParameterisedTestMethodRunner> parameterisedMethods
protected Map<org.junit.runners.model.FrameworkMethod,TestMethod> testMethods
protected List<TestMethod> testMethodsList
public ParameterisedTestClassRunner(org.junit.runners.model.TestClass testClass)
testClass - protected void computeTestMethods(org.junit.runners.model.TestClass testClass)
public List<org.junit.runners.model.FrameworkMethod> computeFrameworkMethods()
FrameworkMethods. Handles both
 parameterised methods (counts them as many times as many paramsets they
 have) and nonparameterised methods (just counts them once).public List<org.junit.runners.model.FrameworkMethod> returnListOfMethods()
FrameworkMethods - once per method, like
 there were no parameters.
 For JUnit to build names for IDE.public org.junit.runners.model.Statement parameterisedMethodInvoker(org.junit.runners.model.FrameworkMethod method,
                                                                    Object testClass)
method - Test methodtestClass - public boolean shouldRun(TestMethod testMethod)
testMethod - public void runParameterisedTest(TestMethod method, org.junit.runners.model.Statement methodInvoker, org.junit.runner.notification.RunNotifier notifier)
method - methodInvoker - notifier - public org.junit.runner.Description describeParameterisedMethod(org.junit.runners.model.FrameworkMethod method)
method - TODOpublic TestMethod testMethodFor(org.junit.runners.model.FrameworkMethod method)
method - Copyright © 2014 Pragmatists. All rights reserved.