}
@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()
{