Skip to content

Commit 8d69696

Browse files
akutscheraNylle
authored andcommitted
Add assertion for list members
When generating a list of Strings, we want different strings for each list entry, i.e. these may not be cached. Refs: #89
1 parent 39e187d commit 8d69696

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/test/java/com/github/nylle/javafixture/specimen/CollectionSpecimenTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ void createArrayListFromListInterface() {
104104
assertThat(actual).isInstanceOf(ArrayList.class);
105105
assertThat(actual.stream().allMatch(x -> x.getClass().equals(String.class))).isTrue();
106106
assertThat(actual.size()).isEqualTo(2);
107+
assertThat(actual.get(0)).as("we should generate different strings for each list entry")
108+
.isNotEqualTo(actual.get(1));
107109
}
108110

109111
@Test

0 commit comments

Comments
 (0)