From: David ‘Bombe’ Roden Date: Thu, 20 Oct 2016 09:04:58 +0000 (+0200) Subject: Use member variable directly X-Git-Tag: 0.9.6^2~9 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=e3cfdd1ce056e81092f3dfd53cc7110999bd0540;p=Sone.git Use member variable directly --- diff --git a/src/test/java/net/pterodactylus/sone/web/WebPageTest.java b/src/test/java/net/pterodactylus/sone/web/WebPageTest.java index eefb641..f464eac 100644 --- a/src/test/java/net/pterodactylus/sone/web/WebPageTest.java +++ b/src/test/java/net/pterodactylus/sone/web/WebPageTest.java @@ -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