org.junit.experimental.theories.internal
Class Assignments

java.lang.Object
  extended by org.junit.experimental.theories.internal.Assignments

public class Assignments
extends Object

A potentially incomplete list of value assignments for a method's formal parameters


Method Summary
static Assignments allUnassigned(Method testMethod, TestClass testClass)
          Returns a new assignment list for testMethod, with no params assigned.
 Assignments assignNext(PotentialAssignment source)
           
 Object[] getActualValues(int start, int stop, boolean nullsOk)
           
 Object[] getAllArguments(boolean nullsOk)
           
 ParameterSupplier getAnnotatedSupplier(ParameterSignature unassigned)
           
 Object[] getArgumentStrings(boolean nullsOk)
           
 Object[] getConstructorArguments(boolean nullsOk)
           
 Object[] getMethodArguments(boolean nullsOk)
           
 ParameterSupplier getSupplier(ParameterSignature unassigned)
           
 boolean isComplete()
           
 ParameterSignature nextUnassigned()
           
 List<PotentialAssignment> potentialsForNextUnassigned()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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