@@ -0,0 +1,1218 @@
+package org.corpus_tools.annis.gui.query_references;%0A%0Aimport static org.junit.jupiter.api.Assertions.assertEquals;%0Aimport static org.junit.jupiter.api.Assertions.assertFalse;%0A%0Aimport java.net.URI;%0Aimport java.util.Date;%0Aimport java.util.UUID;%0Aimport org.junit.jupiter.api.Test;%0A%0Aclass UrlShortenerEntryTest %7B%0A%0A  @Test%0A  void testEquals() %7B%0A    UrlShortenerEntry e1 = new UrlShortenerEntry();%0A%0A    assertEquals(e1, e1);%0A    assertFalse(e1.equals(null));%0A    assertFalse(e1.equals(%22Someobject%22));%0A%0A    UrlShortenerEntry e2 = new UrlShortenerEntry();%0A%0A    assertEquals(e1, e2);%0A%0A    e1.setCreated(new Date());%0A    assertFalse(e1.equals(e2));%0A    e2.setCreated(e1.getCreated());%0A    assertEquals(e1, e2);%0A%0A    e1.setId(UUID.randomUUID());%0A    assertFalse(e1.equals(e2));%0A    e2.setId(e1.getId());%0A    assertEquals(e1, e2);%0A%0A    e1.setOwner(%22someone%22);%0A    assertFalse(e1.equals(e2));%0A    e2.setOwner(e1.getOwner());%0A    assertEquals(e1, e2);%0A%0A    e1.setTemporaryUrl(URI.create(%22/%22));%0A    assertFalse(e1.equals(e2));%0A    e2.setTemporaryUrl(e1.getTemporaryUrl());%0A    assertEquals(e1, e2);%0A%0A    e1.setUrl(URI.create(%22/target%22));%0A    assertFalse(e1.equals(e2));%0A    e2.setUrl(e1.getUrl());%0A    assertEquals(e1, e2);%0A%0A%0A  %7D%0A%0A%7D%0A

Test equals function of UrlShortenerEntry