JAL-1735 test to ensure uniref90_repid type queries are resolved by uniprot sequence...
authorJames Procter <jprocter@ls30857.local>
Fri, 5 Jun 2015 10:09:34 +0000 (11:09 +0100)
committerJames Procter <jprocter@ls30857.local>
Fri, 5 Jun 2015 10:09:34 +0000 (11:09 +0100)
test/jalview/ws/dbsources/UniprotTest.java

index 7325527..cdf5ac1 100644 (file)
@@ -1,7 +1,12 @@
 package jalview.ws.dbsources;
 
 import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNotNull;
 import static org.junit.Assert.assertNull;
+import jalview.datamodel.AlignmentI;
+import jalview.datamodel.PDBEntry;
+import jalview.datamodel.SequenceFeature;
+import jalview.datamodel.UniprotEntry;
 
 import java.io.Reader;
 import java.io.StringReader;
@@ -9,10 +14,6 @@ import java.util.Vector;
 
 import org.junit.Test;
 
-import jalview.datamodel.PDBEntry;
-import jalview.datamodel.SequenceFeature;
-import jalview.datamodel.UniprotEntry;
-
 public class UniprotTest
 {
   // adapted from http://www.uniprot.org/uniprot/A9CKP4.xml
@@ -121,4 +122,12 @@ public class UniprotTest
     assertEquals(expectedName, Uniprot.constructSequenceFastaHeader(entry)
             .toString());
   }
+
+  @Test
+  public void testuniref90_retrieve() throws Exception
+  {
+    AlignmentI rtn = new Uniprot().getSequenceRecords("UniRef90_V5TUP6");
+    assertNotNull(rtn);
+    assertEquals(rtn.getHeight(), 1);
+  }
 }