JAL-2758 update uniprot retrieval test
authorJim Procter <jprocter@issues.jalview.org>
Tue, 14 Nov 2017 12:11:04 +0000 (12:11 +0000)
committerJim Procter <jprocter@issues.jalview.org>
Tue, 14 Nov 2017 12:11:04 +0000 (12:11 +0000)
test/jalview/ws/dbsources/UniprotTest.java

index 5421a44..f98ef85 100644 (file)
@@ -163,14 +163,11 @@ public class UniprotTest
             new StringReader(UNIPROT_XML)).get(0);
 
     /*
-     * name formatted as source | accession ids | names
-     * source database converted to Jalview canonical name
+     * name formatted with Uniprot Entry name
      */
-    String expectedName = "UNIPROT|A9CKP4|A9CKP5|A9CKP4_AGRT5|A9CKP4_AGRT6";
-    assertEquals(expectedName, Uniprot.getUniprotEntryId(entry, true));
-    String expectedShortName = "A9CKP4_AGRT5|A9CKP4_AGRT6";
-    assertEquals(expectedShortName,
-            Uniprot.getUniprotEntryId(entry, false));
+    String expectedName = "A9CKP4_AGRT5|A9CKP4_AGRT6";
+    assertEquals(expectedName,
+            Uniprot.getUniprotEntryId(entry));
   }
 
   /**