@Test public void should_work_with_every_parameter_type() { MDC.clear(); utilisationCrochetsBasique(45, new ArrayList<String>()); utilisationCrochetsBasique(NullPointerException.class, 42); utilisationCrochetsBasique(new TestedOnSupplier(), 0x00100); }
@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>")); }
@Test public void descriptionStatesParameterName() throws Exception { TestedOnSupplier supplier = new TestedOnSupplier(); List<PotentialAssignment> assignments = supplier.getValueSources(signatureOfFoo()); assertThat(assignments.get(0).getDescription(), is("ints")); }