X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Ftest%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Ffcp%2FGetPostCommandTest.java;h=c6664b9b600fcb7e882aae7283a089718ea6f40d;hb=1be3820cd48951abbcfd5a7f95b82d44aa0e016a;hp=03dc205a8851ff3269ef0f6d942a0a454bcbc23a;hpb=253c9c1552e471513d34ae48c156a367b417b827;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;