From b622ef330cc1de0a95ce33f6b1e4049db878685a Mon Sep 17 00:00:00 2001 From: James Procter Date: Fri, 5 Jun 2015 11:09:34 +0100 Subject: [PATCH] JAL-1735 test to ensure uniref90_repid type queries are resolved by uniprot sequence fetcher --- test/jalview/ws/dbsources/UniprotTest.java | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/test/jalview/ws/dbsources/UniprotTest.java b/test/jalview/ws/dbsources/UniprotTest.java index 7325527..cdf5ac1 100644 --- a/test/jalview/ws/dbsources/UniprotTest.java +++ b/test/jalview/ws/dbsources/UniprotTest.java @@ -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); + } } -- 1.7.10.2