/**
* Unit test for {@link ListNotification}.
- *
- * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
*/
public class ListNotificationTest {
public ListNotificationTest() {
when(template.getInitialContext()).thenReturn(templateInitialContext);
- listNotification = new ListNotification<Object>(ID, KEY, template);
+ listNotification = new ListNotification<>(ID, KEY, template);
}
@Test
ListNotification secondNotification = new ListNotification(listNotification);
listNotification.add("a");
secondNotification.add("a");
+ listNotification.setLastUpdateTime(secondNotification.getLastUpdatedTime());
assertThat(listNotification.hashCode(), is(secondNotification.hashCode()));
}