import jalview.ws.params.AutoCalcSetting;
import java.awt.Component;
+import java.io.File;
import java.util.ArrayList;
import java.util.List;
public class RNAStructExportImport
{
+ private static final String JAR_FILE_NAME = "testRnalifold_param.jar";
+
public static String testseqs = "examples/RF00031_folded.stk";
public static Jws2Discoverer disc;
{
af.setVisible(false);
af.dispose();
+ File f = new File(JAR_FILE_NAME);
+ if (f.exists())
+ {
+ f.delete();
+ }
}
}
// write out parameters
jalview.gui.AlignFrame nalf = null;
assertTrue("Couldn't write out the Jar file",
- new Jalview2XML(false).saveAlignment(af,
- "testRnalifold_param.jar", "trial parameter writeout"));
+ new Jalview2XML(false).saveAlignment(af, JAR_FILE_NAME,
+ "trial parameter writeout"));
assertTrue("Couldn't read back the Jar file", (nalf = new Jalview2XML(
- false).loadJalviewAlign("testRnalifold_param.jar")) != null);
+ false).loadJalviewAlign(JAR_FILE_NAME)) != null);
if (nalf != null)
{
AutoCalcSetting acs = af.getViewport().getCalcIdSettingsFor(