X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Ftest%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Ffcp%2FGetPostCommandTest.java;h=03dc205a8851ff3269ef0f6d942a0a454bcbc23a;hb=68cf128b60ff1e9a27964de5bc07cebe666c41c6;hp=09c21ec26be6b00306ab1b82648c0e34d680966e;hpb=1ea3231af23b81238eaf06f22ddb7dd38ef62ccc;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 09c21ec..03dc205 100644 --- a/src/test/java/net/pterodactylus/sone/fcp/GetPostCommandTest.java +++ b/src/test/java/net/pterodactylus/sone/fcp/GetPostCommandTest.java @@ -52,7 +52,7 @@ public class GetPostCommandTest { @Test public void verifyThatGettingAPostWithoutRepliesAndRecipientWorks() throws FcpException, FSParseException { - Sone sone = mocks.mockRemoteSone("SoneId"); + Sone sone = mocks.mockSone("SoneId").create(); Post post = preparePostWithoutRecipient(sone); SimpleFieldSet getPostFieldSet = new SimpleFieldSetBuilder() .put("Message", "GetPost") @@ -65,8 +65,8 @@ public class GetPostCommandTest { @Test public void verifyThatGettingAPostWithoutRepliesAndWithRecipientWorks() throws FcpException, FSParseException { - Sone sone = mocks.mockRemoteSone("SoneId"); - Sone otherSone = mocks.mockRemoteSone("OtherSoneId"); + Sone sone = mocks.mockSone("SoneId").create(); + Sone otherSone = mocks.mockSone("OtherSoneId").create(); Post post = preparePostWithRecipient(sone, otherSone); SimpleFieldSet getPostFieldSet = new SimpleFieldSetBuilder() .put("Message", "GetPost") @@ -79,7 +79,7 @@ public class GetPostCommandTest { @Test public void verifyThatGettingAPostWithRepliesWorks() throws FcpException, FSParseException { - Sone sone = mocks.mockRemoteSone("SoneId"); + Sone sone = mocks.mockSone("SoneId").create(); Post post = preparePostWithoutRecipient(sone); PostReply postReply1 = mocks.mockPostReply(sone, "Reply1"); when(postReply1.getText()).thenReturn("Reply 1.");