JAL-674 tests for PDB ID retrieval and specific chain retrieval
authorJim Procter <jprocter@compbio.dundee.ac.uk>
Tue, 18 Jun 2013 16:03:08 +0000 (17:03 +0100)
committerJim Procter <jprocter@compbio.dundee.ac.uk>
Tue, 18 Jun 2013 16:03:08 +0000 (17:03 +0100)
test/jalview/ws/PDBSequenceFetcherTest.java

index f5913e6..35de214 100644 (file)
@@ -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<DbSourceProxy> 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<DbSourceProxy> sps = new SequenceFetcher(false)
+    List<DbSourceProxy> sps = sf
     .getSourceProxy("PDB");
     AlignmentI response = sps.get(0).getSequenceRecords("2GIS");
     assertTrue(response!=null);