Replace unnecessary type parameters with <>
[Sone.git] / src / test / java / net / pterodactylus / sone / notify / ListNotificationTest.java
index c832a9e..5e40f81 100644 (file)
@@ -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 <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
  */
 public class ListNotificationTest {
 
@@ -36,7 +34,7 @@ public class ListNotificationTest {
 
        public ListNotificationTest() {
                when(template.getInitialContext()).thenReturn(templateInitialContext);
-               listNotification = new ListNotification<Object>(ID, KEY, template);
+               listNotification = new ListNotification<>(ID, KEY, template);
        }
 
        @Test
@@ -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()));
        }