Search in sources :

Example 1 with TestedOnSupplier

use of org.junit.experimental.theories.suppliers.TestedOnSupplier in project junit4 by junit-team.

the class TestedOnSupplierTest method descriptionStatesParameterName.

@Test
public void descriptionStatesParameterName() throws Exception {
    TestedOnSupplier supplier = new TestedOnSupplier();
    List<PotentialAssignment> assignments = supplier.getValueSources(signatureOfFoo());
    assertThat(assignments.get(0).getDescription(), is("\"1\" <from ints>"));
}
Also used : PotentialAssignment(org.junit.experimental.theories.PotentialAssignment) TestedOnSupplier(org.junit.experimental.theories.suppliers.TestedOnSupplier) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 PotentialAssignment (org.junit.experimental.theories.PotentialAssignment)1 TestedOnSupplier (org.junit.experimental.theories.suppliers.TestedOnSupplier)1