|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junitparams.ParameterisedTestClassRunner
public class ParameterisedTestClassRunner
Testclass-level functionalities to handle parameters from a JUnit runner class.
Field Summary | |
---|---|
protected Map<TestMethod,ParameterisedTestMethodRunner> |
parameterisedMethods
|
protected Map<org.junit.runners.model.FrameworkMethod,TestMethod> |
testMethods
|
protected List<TestMethod> |
testMethodsList
|
Constructor Summary | |
---|---|
ParameterisedTestClassRunner(org.junit.runners.model.TestClass testClass)
Creates a runner for a given test class. |
Method Summary | |
---|---|
List<org.junit.runners.model.FrameworkMethod> |
computeFrameworkMethods(boolean firstTimeJustToGetNames)
Returns a list of FrameworkMethod s. |
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 |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Map<TestMethod,ParameterisedTestMethodRunner> parameterisedMethods
protected Map<org.junit.runners.model.FrameworkMethod,TestMethod> testMethods
protected List<TestMethod> testMethodsList
Constructor Detail |
---|
public ParameterisedTestClassRunner(org.junit.runners.model.TestClass testClass)
testClass
- Method Detail |
---|
protected void computeTestMethods(org.junit.runners.model.TestClass testClass)
public List<org.junit.runners.model.FrameworkMethod> computeFrameworkMethods(boolean firstTimeJustToGetNames)
FrameworkMethod
s. Handles both
parameterised methods (counts them as many times as many paramsets they
have) and nonparameterised methods (just counts them once).
firstTimeJustToGetNames
- If true, returns only parameterised methods once - used by
JUnit for building the tree of test names without the params.
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
- TODO
public TestMethod testMethodFor(org.junit.runners.model.FrameworkMethod method)
method
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |