X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Ftest%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fdata%2FMocks.java;h=e1b91026398b6e7fbc7c4ef5d6fd943f44eeb474;hb=3d08e91faa3faaf496fdec77b9a11a03b8be1041;hp=57150849eb07b91318e093bc4aa5357479091ea7;hpb=deb3c1c7744c3b5e2b9cf78bfd5be4d8591a541a;p=Sone.git diff --git a/src/test/java/net/pterodactylus/sone/data/Mocks.java b/src/test/java/net/pterodactylus/sone/data/Mocks.java index 5715084..e1b9102 100644 --- a/src/test/java/net/pterodactylus/sone/data/Mocks.java +++ b/src/test/java/net/pterodactylus/sone/data/Mocks.java @@ -77,6 +77,7 @@ public class Mocks { Sone sone = mock(Sone.class); when(sone.getId()).thenReturn(id); when(sone.isLocal()).thenReturn(false); + when(sone.getProfile()).thenReturn(new Profile(sone)); final Database database = core.getDatabase(); when(sone.newPostBuilder()).thenThrow(IllegalStateException.class); when(sone.newPostReplyBuilder(Matchers.anyObject())).thenThrow(IllegalStateException.class);