X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Ftest%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Ffcp%2FGetPostCommandTest.java;h=d303535b048428e9d70364c44049b8bc5c8d888f;hb=f479ac8ae786d02c07a14bd0cce5e09776ca9c35;hp=03dc205a8851ff3269ef0f6d942a0a454bcbc23a;hpb=68cf128b60ff1e9a27964de5bc07cebe666c41c6;p=Sone.git diff --git a/src/test/java/net/pterodactylus/sone/fcp/GetPostCommandTest.java b/src/test/java/net/pterodactylus/sone/fcp/GetPostCommandTest.java index 03dc205..d303535 100644 --- a/src/test/java/net/pterodactylus/sone/fcp/GetPostCommandTest.java +++ b/src/test/java/net/pterodactylus/sone/fcp/GetPostCommandTest.java @@ -81,9 +81,9 @@ public class GetPostCommandTest { public void verifyThatGettingAPostWithRepliesWorks() throws FcpException, FSParseException { Sone sone = mocks.mockSone("SoneId").create(); Post post = preparePostWithoutRecipient(sone); - PostReply postReply1 = mocks.mockPostReply(sone, "Reply1"); + PostReply postReply1 = mocks.mockPostReply(sone, "Reply1").create(); when(postReply1.getText()).thenReturn("Reply 1."); - PostReply postReply2 = mocks.mockPostReply(sone, "Reply2"); + PostReply postReply2 = mocks.mockPostReply(sone, "Reply2").create(); when(postReply2.getText()).thenReturn("Reply 2."); when(post.getReplies()).thenReturn(asList(postReply1, postReply2)); SimpleFieldSet getPostFieldSet = new SimpleFieldSetBuilder() @@ -132,7 +132,7 @@ public class GetPostCommandTest { } private Post preparePost(Sone sone) { - Post post = mocks.mockPost(sone, "PostId"); + Post post = mocks.mockPost(sone, "PostId").create(); when(post.getText()).thenReturn("Text of the post."); when(post.getTime()).thenReturn(1000L); return post;