From: Jim Procter Date: Tue, 18 Jun 2013 16:03:08 +0000 (+0100) Subject: JAL-674 tests for PDB ID retrieval and specific chain retrieval X-Git-Tag: Jalview_2_9~238 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=dd10fb0ebc3cffd79b14f945b1a9fa948e2c3df9;p=jalview.git JAL-674 tests for PDB ID retrieval and specific chain retrieval --- diff --git a/test/jalview/ws/PDBSequenceFetcherTest.java b/test/jalview/ws/PDBSequenceFetcherTest.java index f5913e6..35de214 100644 --- a/test/jalview/ws/PDBSequenceFetcherTest.java +++ b/test/jalview/ws/PDBSequenceFetcherTest.java @@ -13,15 +13,26 @@ import org.junit.Test; public class PDBSequenceFetcherTest { + SequenceFetcher sf; @Before public void setUp() throws Exception { + sf = new SequenceFetcher(false); } @Test + public void testPdbPerChainRetrieve() throws Exception + { + List sps = sf + .getSourceProxy("PDB"); + AlignmentI response = sps.get(0).getSequenceRecords("1QIPA"); + assertTrue(response!=null); + assertTrue(response.getHeight()==1); + } + @Test public void testRnaSeqRetrieve() throws Exception { - List sps = new SequenceFetcher(false) + List sps = sf .getSourceProxy("PDB"); AlignmentI response = sps.get(0).getSequenceRecords("2GIS"); assertTrue(response!=null);