Setup core and web interface separately
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 11 Oct 2016 19:38:59 +0000 (21:38 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 11 Oct 2016 19:38:59 +0000 (21:38 +0200)
src/test/java/net/pterodactylus/sone/web/WebPageTest.java

index 3cbc75e..c135d07 100644 (file)
@@ -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<Notification>());