From dd10fb0ebc3cffd79b14f945b1a9fa948e2c3df9 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Tue, 18 Jun 2013 17:03:08 +0100 Subject: [PATCH] JAL-674 tests for PDB ID retrieval and specific chain retrieval --- test/jalview/ws/PDBSequenceFetcherTest.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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); -- 1.7.10.2