public class ParametricTestWrapperRule extends Object
Constructor and Description |
---|
ParametricTestWrapperRule(Object targetTest,
FrameworkMethod testMethod,
Object[] paramsValues)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
ParametricTestWrapper |
apply(Statement base,
Description description) |
Object[] |
getParamsValues()
Gets the parameters values for the test method.
|
Object |
getTargetTest()
Returns the target test object for the method invocation.
|
FrameworkMethod |
getTestMethod()
Returns the JUnit framework method.
|
void |
setParamsValues(Object[] paramsValues)
Sets the parameters values for the test method.
|
void |
setTargetTest(Object targetTest)
Sets the target test object for the method invocation.
|
void |
setTestMethod(FrameworkMethod testMethod)
Sets the JUnit framework method.
|
public ParametricTestWrapperRule(Object targetTest, FrameworkMethod testMethod, Object[] paramsValues)
targetTest
- The target test object for the method invocation.testMethod
- The JUnit framework method.paramsValues
- The parameters values for the test method.public Object getTargetTest()
public void setTargetTest(Object targetTest)
targetTest
- New target test object for the method invocation.public FrameworkMethod getTestMethod()
public void setTestMethod(FrameworkMethod testMethod)
testMethod
- New JUnit framework method.public Object[] getParamsValues()
public void setParamsValues(Object[] paramsValues)
paramsValues
- New parameters values for the test method.public ParametricTestWrapper apply(Statement base, Description description)
org.junit.rules.TestRule#apply(org.junit.runners.model.Statement, org.junit.runner.Description)
Copyright © 2012. All Rights Reserved.