Commit 2df156bd authored by Andy Wilkinson's avatar Andy Wilkinson

Merge branch '2.0.x'

parents ae74ce9b 45f4e879
......@@ -126,12 +126,14 @@ public class DelimitedStringToCollectionConverterTests {
assertThat(converted).containsExactly("a,b,c");
}
@SuppressWarnings("unchecked")
@Test
public void convertWhenHasCollectionObjectTypeShouldUseCollectionObjectType() {
TypeDescriptor sourceType = TypeDescriptor.valueOf(String.class);
TypeDescriptor targetType = TypeDescriptor
.nested(ReflectionUtils.findField(Values.class, "specificType"), 0);
MyCustomList<String> converted = (MyCustomList<String>) this.conversionService.convert("a*b", sourceType, targetType);
MyCustomList<String> converted = (MyCustomList<String>) this.conversionService
.convert("a*b", sourceType, targetType);
assertThat(converted).containsExactly("a", "b");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment