org.junit.experimental.theories.internal
Class Assignments

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

public class Assignments
extends java.lang.Object

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


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

Method Detail

allUnassigned

public static Assignments allUnassigned(java.lang.reflect.Method testMethod,
                                        TestClass testClass)
                                 throws java.lang.Exception
Returns a new assignment list for testMethod, with no params assigned.

Throws:
java.lang.Exception

isComplete

public boolean isComplete()

nextUnassigned

public ParameterSignature nextUnassigned()

assignNext

public Assignments assignNext(PotentialAssignment source)

getActualValues

public java.lang.Object[] getActualValues(int start,
                                          int stop,
                                          boolean nullsOk)
                                   throws PotentialAssignment.CouldNotGenerateValueException
Throws:
PotentialAssignment.CouldNotGenerateValueException

potentialsForNextUnassigned

public java.util.List<PotentialAssignment> potentialsForNextUnassigned()
                                                                throws java.lang.InstantiationException,
                                                                       java.lang.IllegalAccessException
Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException

getSupplier

public ParameterSupplier getSupplier(ParameterSignature unassigned)
                              throws java.lang.InstantiationException,
                                     java.lang.IllegalAccessException
Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException

getAnnotatedSupplier

public ParameterSupplier getAnnotatedSupplier(ParameterSignature unassigned)
                                       throws java.lang.InstantiationException,
                                              java.lang.IllegalAccessException
Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException

getConstructorArguments

public java.lang.Object[] getConstructorArguments(boolean nullsOk)
                                           throws PotentialAssignment.CouldNotGenerateValueException
Throws:
PotentialAssignment.CouldNotGenerateValueException

getMethodArguments

public java.lang.Object[] getMethodArguments(boolean nullsOk)
                                      throws PotentialAssignment.CouldNotGenerateValueException
Throws:
PotentialAssignment.CouldNotGenerateValueException

getAllArguments

public java.lang.Object[] getAllArguments(boolean nullsOk)
                                   throws PotentialAssignment.CouldNotGenerateValueException
Throws:
PotentialAssignment.CouldNotGenerateValueException

getArgumentStrings

public java.lang.Object[] getArgumentStrings(boolean nullsOk)
                                      throws PotentialAssignment.CouldNotGenerateValueException
Throws:
PotentialAssignment.CouldNotGenerateValueException