X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Ftest%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fnotify%2FListNotificationFilterTest.java;h=af6339bdfb0c2f61572c36cd0a368827b3e2801c;hb=a57dae72e505fec934a9516b88fea75c473f7641;hp=b29b2c1889baa8514d5259b9267d946c5b6d75a1;hpb=c4ae226ec5052116cefc542ae2017036a7bc6332;p=Sone.git
diff --git a/src/test/java/net/pterodactylus/sone/notify/ListNotificationFilterTest.java b/src/test/java/net/pterodactylus/sone/notify/ListNotificationFilterTest.java
index b29b2c1..af6339b 100644
--- a/src/test/java/net/pterodactylus/sone/notify/ListNotificationFilterTest.java
+++ b/src/test/java/net/pterodactylus/sone/notify/ListNotificationFilterTest.java
@@ -6,7 +6,7 @@ import static org.hamcrest.Matchers.emptyIterable;
import static org.hamcrest.Matchers.hasSize;
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.sameInstance;
-import static org.mockito.Matchers.any;
+import static org.mockito.ArgumentMatchers.any;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
@@ -29,11 +29,10 @@ import com.google.inject.Guice;
import com.google.inject.Injector;
import org.hamcrest.Matchers;
import org.junit.Test;
+import org.mockito.ArgumentMatchers;
/**
* Unit test for {@link ListNotificationFilterTest}.
- *
- * @author David âBombeâ Roden
*/
public class ListNotificationFilterTest {
@@ -117,7 +116,7 @@ public class ListNotificationFilterTest {
}
private void setPostVisibilityPredicate(Predicate value) {
- when(postVisibilityFilter.isVisible(any(Sone.class))).thenReturn(value);
+ when(postVisibilityFilter.isVisible(ArgumentMatchers.any())).thenReturn(value);
}
@Test