From: David ‘Bombe’ Roden Date: Fri, 5 May 2017 22:36:17 +0000 (+0200) Subject: Return no notifications for any Sones X-Git-Tag: 0.9.7^2~220 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=b8a263c05601fed21359d502633509f561e8f8e1;p=Sone.git Return no notifications for any Sones --- diff --git a/src/test/java/net/pterodactylus/sone/web/pages/WebPageTest.java b/src/test/java/net/pterodactylus/sone/web/pages/WebPageTest.java index e04e780..9d77df7 100644 --- a/src/test/java/net/pterodactylus/sone/web/pages/WebPageTest.java +++ b/src/test/java/net/pterodactylus/sone/web/pages/WebPageTest.java @@ -70,6 +70,7 @@ import org.junit.Before; import org.junit.Rule; import org.junit.rules.ExpectedException; import org.mockito.ArgumentMatchers; +import org.mockito.Mockito; import org.mockito.invocation.InvocationOnMock; import org.mockito.stubbing.Answer; @@ -290,7 +291,7 @@ public abstract class WebPageTest { when(webInterface.getCurrentSoneCreatingSession(toadletContext)).thenReturn(currentSone); when(webInterface.getCurrentSoneWithoutCreatingSession(toadletContext)).thenReturn(currentSone); when(webInterface.getNotification(anyString())).thenReturn(Optional.absent()); - when(webInterface.getNotifications(currentSone)).thenReturn(new ArrayList()); + when(webInterface.getNotifications(Mockito.any())).thenReturn(new ArrayList()); } @Before