|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.easetech.easytest.internal.EasyAssignments
public class EasyAssignments
A internal util class for working with the parameters of a test method. This class provides EasyTest the facility to identify the method arguments, identify the DataSupplier associated with the Test Framework and more.
| Constructor Summary | |
|---|---|
EasyAssignments(List<org.junit.experimental.theories.PotentialAssignment> assigned,
List<EasyParamSignature> unassigned,
org.junit.runners.model.TestClass testClass)
Construct a new EasyAssignments |
|
| Method Summary | |
|---|---|
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)
|
Object[] |
getMethodArguments(boolean nullsOk)
|
Param.DataSupplier |
getSupplier(EasyParamSignature unassigned)
Get the instance of class that provides the functionality to provide Data. |
boolean |
isComplete()
|
EasyParamSignature |
nextUnassigned()
|
List<org.junit.experimental.theories.PotentialAssignment> |
potentialsForNextUnassigned()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EasyAssignments(List<org.junit.experimental.theories.PotentialAssignment> assigned,
List<EasyParamSignature> unassigned,
org.junit.runners.model.TestClass testClass)
assigned - unassigned - testClass - | Method Detail |
|---|
public static EasyAssignments allUnassigned(Method testMethod,
org.junit.runners.model.TestClass testClass)
throws Exception
testMethod, with no params assigned.
testMethod - testClass -
EasyAssignments
Exceptionpublic 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.CouldNotGenerateValueException
public List<org.junit.experimental.theories.PotentialAssignment> potentialsForNextUnassigned()
throws InstantiationException,
IllegalAccessException
InstantiationException
IllegalAccessException
public Param.DataSupplier getSupplier(EasyParamSignature unassigned)
throws InstantiationException,
IllegalAccessException
Param.DataSupplier
unassigned -
Param.DataSupplier
InstantiationException
IllegalAccessException
public Object[] getConstructorArguments(boolean nullsOk)
throws org.junit.experimental.theories.PotentialAssignment.CouldNotGenerateValueException
org.junit.experimental.theories.PotentialAssignment.CouldNotGenerateValueException
public Object[] getMethodArguments(boolean nullsOk)
throws org.junit.experimental.theories.PotentialAssignment.CouldNotGenerateValueException
org.junit.experimental.theories.PotentialAssignment.CouldNotGenerateValueException
public Object[] getAllArguments(boolean nullsOk)
throws org.junit.experimental.theories.PotentialAssignment.CouldNotGenerateValueException
org.junit.experimental.theories.PotentialAssignment.CouldNotGenerateValueException
public Object[] getArgumentStrings(boolean nullsOk)
throws org.junit.experimental.theories.PotentialAssignment.CouldNotGenerateValueException
org.junit.experimental.theories.PotentialAssignment.CouldNotGenerateValueException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||