Merge branch 'release-0.9.7'
[Sone.git] / src / test / java / net / pterodactylus / sone / notify / ListNotificationTest.java
index c354afa..ea5f067 100644 (file)
@@ -4,11 +4,11 @@ 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.argThat;
-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;
+import static org.mockito.hamcrest.MockitoHamcrest.argThat;
 
 import java.util.Arrays;
 
@@ -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()));
        }