X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Ftest%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fdata%2FSoneTest.java;h=d54c0723ca9ac7af76f85dfbffb0b0ef16387132;hb=8af5f3270c8e2bd308fa5127729b5e0330611d19;hp=25e58bb18c2fc4527877226139d962fc9c0f70f5;hpb=a781971dedd44853820a9e1b6963d6f49e451ad6;p=Sone.git diff --git a/src/test/java/net/pterodactylus/sone/data/SoneTest.java b/src/test/java/net/pterodactylus/sone/data/SoneTest.java index 25e58bb..d54c072 100644 --- a/src/test/java/net/pterodactylus/sone/data/SoneTest.java +++ b/src/test/java/net/pterodactylus/sone/data/SoneTest.java @@ -36,12 +36,12 @@ public class SoneTest { @Test public void verifyThatTransformingASoneIntoItsPostsWorks() { - Sone sone = mocks.mockLocalSone("Sone"); - Post post1 = mocks.mockPost(sone, "Post1"); + Sone sone = mocks.mockSone("Sone").local().create(); + Post post1 = mocks.mockPost(sone, "Post1").create(); when(post1.getTime()).thenReturn(1000L); - Post post2 = mocks.mockPost(sone, "Post2"); + Post post2 = mocks.mockPost(sone, "Post2").create(); when(post2.getTime()).thenReturn(2000L); - Post post3 = mocks.mockPost(sone, "Post3"); + Post post3 = mocks.mockPost(sone, "Post3").create(); when(post3.getTime()).thenReturn(3000L); assertThat(TO_POSTS.apply(sone), contains(is(post3), is(post2), is(post1))); }