Use member variable directly
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 20 Oct 2016 09:04:58 +0000 (11:04 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 20 Oct 2016 09:04:58 +0000 (11:04 +0200)
src/test/java/net/pterodactylus/sone/web/WebPageTest.java

index eefb641..f464eac 100644 (file)
@@ -69,7 +69,7 @@ public abstract class WebPageTest {
        @Before
        public final void setupCore() {
                UpdateChecker updateChecker = mock(UpdateChecker.class);
-               when(webInterface.getCore().getUpdateChecker()).thenReturn(updateChecker);
+               when(core.getUpdateChecker()).thenReturn(updateChecker);
        }
 
        @Before