X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=test%2Fjalview%2Fio%2FRNAMLfileTest.java;h=ae72de41f2fb9b1ab0316356da899fe9ca08ac37;hb=1bfb581512684bc3bcbb108405d5db0e795cbc6f;hp=76632503e3a7393cee49f4ae660222c36e638401;hpb=838e4f91d4a53dd315640dbc9ff6ef7a815ee576;p=jalview.git diff --git a/test/jalview/io/RNAMLfileTest.java b/test/jalview/io/RNAMLfileTest.java index 7663250..ae72de4 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.0b1) - * 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,11 +32,18 @@ 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 { } - @AfterClass + @AfterClass(alwaysRun = true) public static void tearDownAfterClass() throws Exception { } @@ -43,7 +52,8 @@ public class RNAMLfileTest public void testRnamlToStockholmIO() { StockholmFileTest.testFileIOwithFormat(new File( - "examples/testdata/rna-alignment.xml"), "STH", -1, -1); + "examples/testdata/rna-alignment.xml"), FileFormat.Stockholm, + -1, -1, true, true, true); }