package jalview.io;
import jalview.bin.Cache;
-import jalview.bin.Instance;
import jalview.bin.Jalview;
import jalview.datamodel.AlignmentAnnotation;
import jalview.datamodel.SequenceI;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
-import org.testng.annotations.BeforeTest;
+import org.testng.annotations.BeforeMethod;
public class Jalview2xmlBase
{
*/
Cache.loadProperties("test/jalview/io/testProps.jvprops");
+ Cache.initLogger();
+
/*
* set news feed last read to a future time to ensure no
* 'unread' news item is displayed
@AfterClass(alwaysRun = true)
public static void tearDownAfterClass() throws Exception
{
- jalview.bin.Instance.getDesktop().closeAll_actionPerformed(null);
+ jalview.gui.Desktop.getInstance().closeAll_actionPerformed(null);
}
- @BeforeTest(alwaysRun = true)
+ @BeforeMethod(alwaysRun = true)
public static void clearDesktop()
{
- if (Instance.getDesktop() != null && Desktop.getFrames() != null
+ if (Desktop.getInstance() != null && Desktop.getFrames() != null
&& Desktop.getFrames().length > 0)
{
- Instance.getDesktop().closeAll_actionPerformed(null);
+ Desktop.getInstance().closeAll_actionPerformed(null);
}
}