X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=test%2Fjalview%2Fio%2FRNAMLfileTest.java;h=65cea6f40d127e02e09489367aaa7d0ca1344d4b;hb=99bfb1a08e5ceb3a3c990bb49dcd7433a0880558;hp=52c2d56ef84dff04db8f0abb443202ea3556ef39;hpb=db93a1adcbe0a4eaaf06e0a70ade0d6c5c1961c3;p=jalview.git diff --git a/test/jalview/io/RNAMLfileTest.java b/test/jalview/io/RNAMLfileTest.java index 52c2d56..65cea6f 100644 --- a/test/jalview/io/RNAMLfileTest.java +++ b/test/jalview/io/RNAMLfileTest.java @@ -1,6 +1,6 @@ /* - * Jalview - A Sequence Alignment Editor and Viewer (Version 2.9.0b2) - * Copyright (C) 2015 The Jalview Authors + * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$) + * Copyright (C) $$Year-Rel$$ The Jalview Authors * * This file is part of Jalview. * @@ -20,6 +20,8 @@ */ package jalview.io; +import jalview.gui.JvOptionPane; + import java.io.File; import org.testng.annotations.AfterClass; @@ -30,6 +32,13 @@ public class RNAMLfileTest { @BeforeClass(alwaysRun = true) + public void setUpJvOptionPane() + { + JvOptionPane.setInteractiveMode(false); + JvOptionPane.setMockResponse(JvOptionPane.CANCEL_OPTION); + } + + @BeforeClass(alwaysRun = true) public static void setUpBeforeClass() throws Exception { } @@ -42,8 +51,9 @@ public class RNAMLfileTest @Test(groups = { "Functional" }) public void testRnamlToStockholmIO() { - StockholmFileTest.testFileIOwithFormat(new File( - "examples/testdata/rna-alignment.xml"), "STH", -1, -1); + StockholmFileTest.testFileIOwithFormat( + new File("examples/testdata/rna-alignment.xml"), + FileFormat.Stockholm, -1, -1, true, true, true); }