org.junit.experimental.theories.internal
Class Assignments
java.lang.Object
org.junit.experimental.theories.internal.Assignments
public class Assignments
- extends Object
A potentially incomplete list of value assignments for a method's formal
parameters
allUnassigned
public static Assignments allUnassigned(Method testMethod,
TestClass testClass)
throws Exception
- Returns a new assignment list for
testMethod
, with no params
assigned.
- Throws:
Exception
isComplete
public boolean isComplete()
nextUnassigned
public ParameterSignature nextUnassigned()
assignNext
public Assignments assignNext(PotentialAssignment source)
getActualValues
public Object[] getActualValues(int start,
int stop,
boolean nullsOk)
throws PotentialAssignment.CouldNotGenerateValueException
- Throws:
PotentialAssignment.CouldNotGenerateValueException
potentialsForNextUnassigned
public List<PotentialAssignment> potentialsForNextUnassigned()
throws InstantiationException,
IllegalAccessException
- Throws:
InstantiationException
IllegalAccessException
getSupplier
public ParameterSupplier getSupplier(ParameterSignature unassigned)
throws InstantiationException,
IllegalAccessException
- Throws:
InstantiationException
IllegalAccessException
getAnnotatedSupplier
public ParameterSupplier getAnnotatedSupplier(ParameterSignature unassigned)
throws InstantiationException,
IllegalAccessException
- Throws:
InstantiationException
IllegalAccessException
getConstructorArguments
public Object[] getConstructorArguments(boolean nullsOk)
throws PotentialAssignment.CouldNotGenerateValueException
- Throws:
PotentialAssignment.CouldNotGenerateValueException
getMethodArguments
public Object[] getMethodArguments(boolean nullsOk)
throws PotentialAssignment.CouldNotGenerateValueException
- Throws:
PotentialAssignment.CouldNotGenerateValueException
getAllArguments
public Object[] getAllArguments(boolean nullsOk)
throws PotentialAssignment.CouldNotGenerateValueException
- Throws:
PotentialAssignment.CouldNotGenerateValueException
getArgumentStrings
public Object[] getArgumentStrings(boolean nullsOk)
throws PotentialAssignment.CouldNotGenerateValueException
- Throws:
PotentialAssignment.CouldNotGenerateValueException