From deb3c1c7744c3b5e2b9cf78bfd5be4d8591a541a Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Mon, 28 Oct 2013 21:50:14 +0100 Subject: [PATCH] No adding posts to a remote Sone! --- src/test/java/net/pterodactylus/sone/data/Mocks.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/net/pterodactylus/sone/data/Mocks.java b/src/test/java/net/pterodactylus/sone/data/Mocks.java index fd95180..5715084 100644 --- a/src/test/java/net/pterodactylus/sone/data/Mocks.java +++ b/src/test/java/net/pterodactylus/sone/data/Mocks.java @@ -78,7 +78,7 @@ public class Mocks { when(sone.getId()).thenReturn(id); when(sone.isLocal()).thenReturn(false); final Database database = core.getDatabase(); - when(sone.newPostBuilder()).thenReturn(new DefaultPostBuilder(database, id)); + when(sone.newPostBuilder()).thenThrow(IllegalStateException.class); when(sone.newPostReplyBuilder(Matchers.anyObject())).thenThrow(IllegalStateException.class); when(core.getSone(eq(id))).thenReturn(of(sone)); when(database.getSone(eq(id))).thenReturn(of(sone)); -- 2.7.4