From c2527694c0264d6594ecad8a7b8437046f518f68 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Mon, 4 Nov 2013 07:07:04 +0100 Subject: [PATCH] Verify Lists instead of Collections. --- src/test/java/net/pterodactylus/sone/fcp/Verifiers.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/java/net/pterodactylus/sone/fcp/Verifiers.java b/src/test/java/net/pterodactylus/sone/fcp/Verifiers.java index c90edb2..d3d9f69 100644 --- a/src/test/java/net/pterodactylus/sone/fcp/Verifiers.java +++ b/src/test/java/net/pterodactylus/sone/fcp/Verifiers.java @@ -24,7 +24,7 @@ import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.is; import static org.hamcrest.Matchers.notNullValue; -import java.util.Collection; +import java.util.List; import net.pterodactylus.sone.data.Post; import net.pterodactylus.sone.data.PostReply; @@ -56,7 +56,7 @@ public class Verifiers { assertThat(replyParameters.get(format("%sText", prefix)), is(post.getText())); } - static void verifyPosts(SimpleFieldSet postFieldSet, String prefix, Collection posts) throws FSParseException { + static void verifyPosts(SimpleFieldSet postFieldSet, String prefix, List posts) throws FSParseException { assertThat(postFieldSet.getInt(prefix + "Count"), CoreMatchers.is(posts.size())); int postIndex = 0; for (Post post : posts) { @@ -72,7 +72,7 @@ public class Verifiers { assertThat(replyParameters.get(format("%sText", prefix)), is(postReply.getText())); } - static void verifyPostReplies(SimpleFieldSet postFieldSet, String prefix, Collection postReplies) throws FSParseException { + static void verifyPostReplies(SimpleFieldSet postFieldSet, String prefix, List postReplies) throws FSParseException { assertThat(postFieldSet.getInt(prefix + "Count"), CoreMatchers.is(from(postReplies).filter(FUTURE_REPLY_FILTER).size())); int postReplyIndex = 0; for (PostReply postReply : from(postReplies).filter(FUTURE_REPLY_FILTER)) { @@ -81,7 +81,7 @@ public class Verifiers { } } - static void verifyPostsWithReplies(SimpleFieldSet postFieldSet, String prefix, Collection posts) throws FSParseException { + static void verifyPostsWithReplies(SimpleFieldSet postFieldSet, String prefix, List posts) throws FSParseException { assertThat(postFieldSet.getInt(prefix + "Count"), CoreMatchers.is(posts.size())); int postIndex = 0; for (Post post : posts) { -- 2.7.4