From c4434f7c3f642a97da31fb6d704848cede8aefb7 Mon Sep 17 00:00:00 2001 From: Helen Williamson Date: Tue, 14 Mar 2017 15:23:13 +0000 Subject: [PATCH] Update RecordedKnownOffendersTest.java (#41) * Update RecordedKnownOffendersTest.java Fixing broken test * sort out incompetent developer indentistry --- .../configuration/test/RecordedKnownOffendersTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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