diff --git a/src/test/java/org/netmelody/cieye/server/configuration/test/RecordedKnownOffendersTest.java b/src/test/java/org/netmelody/cieye/server/configuration/test/RecordedKnownOffendersTest.java index 3ac5418..14c02e0 100644 --- a/src/test/java/org/netmelody/cieye/server/configuration/test/RecordedKnownOffendersTest.java +++ b/src/test/java/org/netmelody/cieye/server/configuration/test/RecordedKnownOffendersTest.java @@ -2,6 +2,7 @@ import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.contains; +import static org.hamcrest.Matchers.containsInAnyOrder; import static org.hamcrest.Matchers.is; import java.io.File; @@ -69,8 +70,8 @@ public void createOffendersFile() throws IOException { @Test public void looksUpMultipleOffenders() { - assertThat(offenders.search("vlad/stupid:"), contains(new Sponsor("", "/pictures/vlad.png"), - new Sponsor("", "/pictures/stupid.png"))); + assertThat(offenders.search("vlad/stupid:"), containsInAnyOrder(new Sponsor("", "/pictures/vlad.png"), + new Sponsor("", "/pictures/stupid.png"))); } @Test public void