@Test public void usesListIntegerMethodForIterableLowerBoundInteger() { ListContainer source = new ListContainer(); source.setValues(Arrays.asList("42", "47")); IterableContainer result = MapperWithCustomListMapping.INSTANCE.toContainerWithIterable(source); assertThat(result.getValues()).contains(Integer.valueOf(66), Integer.valueOf(71)); }
@Test public void createsForgedMethodForIterableLowerBoundInteger() { ListContainer source = new ListContainer(); source.setValues(Arrays.asList("42", "47")); IterableContainer result = MapperWithForgedIterableMapping.INSTANCE.toContainerWithIterable(source); assertThat(result.getValues()).contains(Integer.valueOf(42), Integer.valueOf(47)); }