X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Ftest%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fnotify%2FListNotificationTest.java;h=a31621f13d69d33573bc1ba807f4da810ac0b82f;hb=62573c314957b1851f4fbe693b8746686caa940a;hp=c832a9e4b92b8ece9a211630deb209cdb485670f;hpb=d9d178b845ae83155f22a52e4ea697359864883c;p=Sone.git diff --git a/src/test/java/net/pterodactylus/sone/notify/ListNotificationTest.java b/src/test/java/net/pterodactylus/sone/notify/ListNotificationTest.java index c832a9e..a31621f 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; @@ -21,8 +21,6 @@ import org.junit.Test; /** * Unit test for {@link ListNotification}. - * - * @author David ‘Bombe’ Roden */ public class ListNotificationTest { @@ -110,6 +108,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())); }