use of org.junit.experimental.theories.internal.SpecificDataPointsSupplier in project junit4 by junit-team.
the class SpecificDataPointsSupplierTest method shouldReturnOnlyTheNamedDataPoints.
@Test
public void shouldReturnOnlyTheNamedDataPoints() throws Throwable {
SpecificDataPointsSupplier supplier = new SpecificDataPointsSupplier(new TestClass(TestClassWithNamedDataPoints.class));
List<PotentialAssignment> assignments = supplier.getValueSources(signature("methodWantingAllNamedStrings"));
List<String> assignedStrings = getStringValuesFromAssignments(assignments);
assertEquals(4, assignedStrings.size());
assertThat(assignedStrings, hasItems("named field", "named method", "named single value", "named single method value"));
}
Aggregations