카테고리 없음
[자바] Generic assertThat (ArrayList, hasItems (InstanceOfSomeInterface)) not working
행복을전해요
2020. 12. 10. 09:06
ArrayList<SomeInterface> newList = new ArrayList<SomeInterface>();
newList.addAll(origList);
assertThat(newList, hasItems(InstanceOfSomeInterface));
Assert.assertThat이 ?를 사용하여 코딩되지 않은 것은 유감입니다 . 슈퍼 또는 ? 설명하는 것을 허용하도록 확장 됩니다.
출처
https://stackoverflow.com/questions/7414988