|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunitparams.internal.ParameterisedTestClassRunner
public class ParameterisedTestClassRunner
Testclass-level functionalities to handle parameters from a JUnit runner class.
| 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()
Returns a list of FrameworkMethods. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ParameterisedTestClassRunner(org.junit.runners.model.TestClass testClass)
testClass - | Method Detail |
|---|
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 - 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 | |||||||||