public class EasyAssignments extends Object
| Constructor and Description |
|---|
EasyAssignments(List<org.junit.experimental.theories.PotentialAssignment> assigned,
List<EasyParamSignature> unassigned,
org.junit.runners.model.TestClass testClass)
Construct a new EasyAssignments
|
| Modifier and Type | Method and Description |
|---|---|
static EasyAssignments |
allUnassigned(Method testMethod,
org.junit.runners.model.TestClass testClass)
Returns a new assignment list for
testMethod, with no params assigned. |
EasyAssignments |
assignNext(org.junit.experimental.theories.PotentialAssignment source) |
Object[] |
getActualValues(int start,
int stop,
boolean nullsOk) |
Object[] |
getAllArguments(boolean nullsOk) |
Object[] |
getArgumentStrings(boolean nullsOk) |
Object[] |
getConstructorArguments(boolean nullsOk) |
protected String[] |
getDateFormat(EasyFrameworkMethod testMethod) |
protected String[] |
getDateTimeFormat(EasyFrameworkMethod testMethod) |
Object[] |
getMethodArguments(boolean nullsOk) |
Param.DataSupplier |
getSupplier(EasyFrameworkMethod testMethod)
Get the instance of class that provides the functionality to provide Data.
|
protected String[] |
getTimeFormat(EasyFrameworkMethod testMethod) |
boolean |
isComplete() |
EasyParamSignature |
nextUnassigned() |
List<org.junit.experimental.theories.PotentialAssignment> |
potentialsForNextUnassigned(EasyFrameworkMethod testMethod) |
public EasyAssignments(List<org.junit.experimental.theories.PotentialAssignment> assigned, List<EasyParamSignature> unassigned, org.junit.runners.model.TestClass testClass)
assigned - unassigned - testClass - public static EasyAssignments allUnassigned(Method testMethod, org.junit.runners.model.TestClass testClass) throws Exception
testMethod, with no params assigned.testMethod - testClass - EasyAssignmentsExceptionpublic boolean isComplete()
public EasyParamSignature nextUnassigned()
public EasyAssignments assignNext(org.junit.experimental.theories.PotentialAssignment source)
public Object[] getActualValues(int start, int stop, boolean nullsOk) throws org.junit.experimental.theories.PotentialAssignment.CouldNotGenerateValueException
org.junit.experimental.theories.PotentialAssignment.CouldNotGenerateValueExceptionpublic List<org.junit.experimental.theories.PotentialAssignment> potentialsForNextUnassigned(EasyFrameworkMethod testMethod) throws InstantiationException, IllegalAccessException
public Param.DataSupplier getSupplier(EasyFrameworkMethod testMethod) throws InstantiationException, IllegalAccessException
Param.DataSuppliertestMethod - the test method associated with the assignmentParam.DataSupplierInstantiationExceptionIllegalAccessExceptionpublic Object[] getConstructorArguments(boolean nullsOk) throws org.junit.experimental.theories.PotentialAssignment.CouldNotGenerateValueException
org.junit.experimental.theories.PotentialAssignment.CouldNotGenerateValueExceptionpublic Object[] getMethodArguments(boolean nullsOk) throws org.junit.experimental.theories.PotentialAssignment.CouldNotGenerateValueException
org.junit.experimental.theories.PotentialAssignment.CouldNotGenerateValueExceptionpublic Object[] getAllArguments(boolean nullsOk) throws org.junit.experimental.theories.PotentialAssignment.CouldNotGenerateValueException
org.junit.experimental.theories.PotentialAssignment.CouldNotGenerateValueExceptionpublic Object[] getArgumentStrings(boolean nullsOk) throws org.junit.experimental.theories.PotentialAssignment.CouldNotGenerateValueException
org.junit.experimental.theories.PotentialAssignment.CouldNotGenerateValueExceptionprotected String[] getDateFormat(EasyFrameworkMethod testMethod)
protected String[] getTimeFormat(EasyFrameworkMethod testMethod)
protected String[] getDateTimeFormat(EasyFrameworkMethod testMethod)
Copyright © 2014. All rights reserved.