X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Ftest%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2FWebPageTest.java;h=c135d073a269d241cc0bba5c24c33cbbbc01862e;hp=3cbc75ef6aa787cd08a973190380b88baa484dd5;hb=e30087dacaf59f2328e74f1a88a2be3e60a93e80;hpb=a499658371a06dd52191bd6c0fed6542cfd1e9b0 diff --git a/src/test/java/net/pterodactylus/sone/web/WebPageTest.java b/src/test/java/net/pterodactylus/sone/web/WebPageTest.java index 3cbc75e..c135d07 100644 --- a/src/test/java/net/pterodactylus/sone/web/WebPageTest.java +++ b/src/test/java/net/pterodactylus/sone/web/WebPageTest.java @@ -55,9 +55,13 @@ public abstract class WebPageTest { } @Before - public final void setupWebInterface() { + public final void setupCore() { UpdateChecker updateChecker = mock(UpdateChecker.class); when(webInterface.getCore().getUpdateChecker()).thenReturn(updateChecker); + } + + @Before + public final void setupWebInterface() { when(webInterface.getCurrentSone(toadletContext)).thenReturn(currentSone); when(webInterface.getCurrentSone(eq(toadletContext), anyBoolean())).thenReturn(currentSone); when(webInterface.getNotifications(currentSone)).thenReturn(new ArrayList());