DATACMNS-1430 - Tweaked TypeDiscoverer to consider subtypes of Streamable collection like.

This commit is contained in:
Oliver Drotbohm
2018-12-04 15:43:54 +01:00
parent 549940456b
commit 75c9ab0a63
2 changed files with 3 additions and 3 deletions

View File

@@ -160,12 +160,12 @@ public class TypeDiscovererUnitTests {
});
}
@Test // DATACMNS-1342
@Test // DATACMNS-1342, DATACMNS-1430
public void considersStreamableToBeCollectionLike() {
TypeInformation<SomeStreamable> type = from(SomeStreamable.class);
assertThat(type.isCollectionLike()).isFalse();
assertThat(type.isCollectionLike()).isTrue();
assertThat(type.getRequiredProperty("streamable").isCollectionLike()).isTrue();
}