Merge branch 'JAL-1347' into develop
[jalview.git] / 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);