From bbca0bbcacdbd8ff0a226ca516c099d05eaa5b53 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Mon, 15 Jun 2015 14:03:22 +0100 Subject: [PATCH] JAL-1775 test demonstrating bug --- test/jalview/ws/jabaws/RNAStructExportImport.java | 32 +++++++++++++++++++++ 1 file changed, 32 insertions(+) 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() { -- 1.7.10.2