@AfterMethod(alwaysRun = true)
public void tearDown()
{
- Desktop.instance.closeAll_actionPerformed(null);
+ if (Desktop.instance != null)
+ Desktop.instance.closeAll_actionPerformed(null);
}
@Test(groups = "Functional")
* use read-only test properties file
*/
Cache.loadProperties("test/jalview/io/testProps.jvprops");
- Jalview.main(new String[] { "-nonews" });
+ Jalview.main(new String[] { "--nonews" });
}
/**
dna += dna;
}
assertEquals(dna.length(), 51200);
- AlignFrame alignFrame = new FileLoader().LoadFileWaitTillLoaded(dna,
- DataSourceType.PASTE);
+ AlignFrame alignFrame = new FileLoader()
+ .LoadFileWaitTillLoaded("dna " + dna, DataSourceType.PASTE);
SeqPanel testee = alignFrame.alignPanel.getSeqPanel();
AlignViewport av = alignFrame.getViewport();
av.setScaleAboveWrapped(true);