import jalview.datamodel.SequenceGroup;
import jalview.gui.AlignFrame;
+import jalview.gui.JvOptionPane;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
public class JalviewExportPropertiesTests
{
+ @BeforeClass(alwaysRun = true)
+ public void setUpJvOptionPane()
+ {
+ JvOptionPane.setInteractiveMode(false);
+ JvOptionPane.setMockResponse(JvOptionPane.CANCEL_OPTION);
+ }
+
/**
* @throws java.lang.Exception
*/
@BeforeClass(alwaysRun = true)
public static void setUpBeforeClass() throws Exception
{
- jalview.bin.Jalview.main(new String[] { "-props",
- "test/jalview/io/testProps.jvprops" });
+ jalview.bin.Jalview
+ .main(new String[]
+ { "-props", "test/jalview/io/testProps.jvprops" });
}
/**
sg.setStartRes(1);
sg.setEndRes(7);
af.getViewport().setSelectionGroup(sg);
- String fseqs = new FormatAdapter(af.alignPanel).formatSequences(
- FileFormat.Fasta, af.alignPanel, true);
+ String fseqs = new FormatAdapter(af.alignPanel)
+ .formatSequences(FileFormat.Fasta, af.alignPanel, true);
assertTrue("Couldn't find '.' in the exported region\n" + fseqs,
fseqs.indexOf(".") > -1);
}