split test for general Stockholm IO consistency (JAL-1199) from test for IO of sequen... JAL-1199-Stk_writing
authorJim Procter <jprocter@compbio.dundee.ac.uk>
Fri, 15 Feb 2013 15:43:27 +0000 (15:43 +0000)
committerJim Procter <jprocter@compbio.dundee.ac.uk>
Tue, 21 May 2013 15:15:32 +0000 (16:15 +0100)
test/jalview/io/StockholmFileTest.java

index caeb184..92ee5e0 100644 (file)
@@ -22,19 +22,26 @@ public class StockholmFileTest
   @Test
   public void pfamFileIO() throws Exception
   {
-      test(new File(PfamFile));
-      AppletFormatAdapter af = new AppletFormatAdapter();
-      AlignmentI al = af.readFile(PfamFile, af.FILE, new IdentifyFile().Identify(PfamFile, af.FILE));
-      int numpdb=0;
-      for (SequenceI sq:al.getSequences())
+    testFileIOwithFormat(new File(PfamFile), "STH");
+  }
+  @Test
+  public void pfamFileDataExtraction() throws Exception
+  {  AppletFormatAdapter af = new AppletFormatAdapter();
+    AlignmentI al = af.readFile(PfamFile, af.FILE,
+            new IdentifyFile().Identify(PfamFile, af.FILE));
+    int numpdb = 0;
+    for (SequenceI sq : al.getSequences())
+    {
+      if (sq.getPDBId() != null)
       {
-        if (sq.getPDBId()!=null)
-        {
-          numpdb+=sq.getPDBId().size();
-        }
+        numpdb += sq.getPDBId().size();
       }
-      assertTrue("PF00111 seed alignment has at least 1 PDB file, but the reader found none.",numpdb>0);
+    }
+    assertTrue(
+            "PF00111 seed alignment has at least 1 PDB file, but the reader found none.",
+            numpdb > 0);
   }
+
   @Test
   public void rfamFileIO() throws Exception
   {