public class InternalParameterizedStatement
extends org.junit.runners.model.Statement
DataDrivenTestRunner and SpringTestRunner that is present in the easytest-spring module.| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
LOG
An instance of logger associated with the test framework.
|
| Constructor and Description |
|---|
InternalParameterizedStatement(EasyFrameworkMethod fTestMethod,
org.junit.runners.model.TestClass testClass,
Object testInstance) |
| Modifier and Type | Method and Description |
|---|---|
void |
evaluate() |
protected void |
handleAssumptionViolation(org.junit.internal.AssumptionViolatedException e) |
protected void |
runWithAssignment(EasyAssignments parameterAssignment)
This method encapsulates the actual change in behavior from the traditional JUnit Theories way of populating and
supplying the test data to the test method.
|
protected void |
runWithCompleteAssignment(EasyAssignments complete)
Run the test data with complete Assignments
|
protected final org.slf4j.Logger LOG
public InternalParameterizedStatement(EasyFrameworkMethod fTestMethod, org.junit.runners.model.TestClass testClass, Object testInstance)
public void evaluate()
throws Throwable
evaluate in class org.junit.runners.model.StatementThrowableprotected void runWithAssignment(EasyAssignments parameterAssignment) throws Throwable
Assignments identified by
listOfAssignments and then calls runWithCompleteAssignment(EasyAssignments) for each
Assignments element in the listOfAssignmentsparameterAssignment - an instance of Assignments identifying the parameters that needs to be
supplied test dataThrowable - if any exception occurs.protected void runWithCompleteAssignment(EasyAssignments complete) throws InstantiationException, IllegalAccessException, InvocationTargetException, NoSuchMethodException, Throwable
complete - the AssignmentsInstantiationException - if an error occurs while instantiating the methodIllegalAccessException - if an error occurs due to illegal access to the test methodInvocationTargetException - if an error occurs because the method is not invokableNoSuchMethodException - if an error occurs because no such method with the given name exists.Throwable - any other errorprotected void handleAssumptionViolation(org.junit.internal.AssumptionViolatedException e)
Copyright © 2014. All rights reserved.