JAL-1775 test demonstrating bug
authorJim Procter <jprocter@issues.jalview.org>
Mon, 15 Jun 2015 13:03:22 +0000 (14:03 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Mon, 15 Jun 2015 13:03:22 +0000 (14:03 +0100)
test/jalview/ws/jabaws/RNAStructExportImport.java

index c1c3357..665d9c8 100644 (file)
@@ -119,6 +119,38 @@ public class RNAStructExportImport
   }
 
   @Test
+  public void testRNAAliFoldValidStructure()
+  {
+
+    alifoldClient = new RNAalifoldClient(rnaalifoldws, af, null, null);
+
+    af.getViewport().getCalcManager().startWorker(alifoldClient);
+
+    do
+    {
+      try
+      {
+        Thread.sleep(50);
+      } catch (InterruptedException x)
+      {
+      }
+      ;
+    } while (af.getViewport().getCalcManager().isWorking());
+
+    AlignmentI orig_alig = af.getViewport().getAlignment();
+    for (AlignmentAnnotation aa:orig_alig.getAlignmentAnnotation())
+    {
+      if (alifoldClient.involves(aa))
+      {
+        if (aa.isRNA())
+        {
+          Assert.assertTrue("Did not create valid structure from RNAALiFold prediction", aa.isValidStruc());
+        }
+      }
+    }
+  }
+
+  @Test
   public void testRNAStructExport()
   {