From: Jim Procter Date: Mon, 15 Jun 2015 13:03:22 +0000 (+0100) Subject: JAL-1775 test demonstrating bug X-Git-Tag: Release_2_10_0~608^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=bbca0bbcacdbd8ff0a226ca516c099d05eaa5b53;p=jalview.git JAL-1775 test demonstrating bug --- diff --git a/test/jalview/ws/jabaws/RNAStructExportImport.java b/test/jalview/ws/jabaws/RNAStructExportImport.java index c1c3357..665d9c8 100644 --- a/test/jalview/ws/jabaws/RNAStructExportImport.java +++ b/test/jalview/ws/jabaws/RNAStructExportImport.java @@ -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() {