X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Ftest%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fnotify%2FListNotificationTest.java;h=ea5f067ec4c64be43d269f58e863e93bff1dc1e4;hp=c832a9e4b92b8ece9a211630deb209cdb485670f;hb=ffd92ca2374c0b2218e583d02e0bdd24b8c110ae;hpb=d9d178b845ae83155f22a52e4ea697359864883c diff --git a/src/test/java/net/pterodactylus/sone/notify/ListNotificationTest.java b/src/test/java/net/pterodactylus/sone/notify/ListNotificationTest.java index c832a9e..ea5f067 100644 --- a/src/test/java/net/pterodactylus/sone/notify/ListNotificationTest.java +++ b/src/test/java/net/pterodactylus/sone/notify/ListNotificationTest.java @@ -4,7 +4,7 @@ import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.emptyIterable; import static org.hamcrest.Matchers.is; import static org.hamcrest.Matchers.not; -import static org.mockito.Matchers.eq; +import static org.mockito.ArgumentMatchers.eq; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; @@ -110,6 +110,7 @@ public class ListNotificationTest { ListNotification secondNotification = new ListNotification(listNotification); listNotification.add("a"); secondNotification.add("a"); + listNotification.setLastUpdateTime(secondNotification.getLastUpdatedTime()); assertThat(listNotification.hashCode(), is(secondNotification.hashCode())); }