X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Ftest%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Ffcp%2FGetPostCommandTest.java;h=c6664b9b600fcb7e882aae7283a089718ea6f40d;hb=4834440b333d34a5cb4b365955489456cd0e5a0c;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..c6664b9 100644 --- a/src/test/java/net/pterodactylus/sone/fcp/GetPostCommandTest.java +++ b/src/test/java/net/pterodactylus/sone/fcp/GetPostCommandTest.java @@ -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;