import java.awt.Font;
import java.awt.FontMetrics;
-import org.testng.annotations.BeforeMethod;
+import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
-
import jalview.bin.Cache;
import jalview.datamodel.AlignmentI;
import jalview.datamodel.SearchResults;
import jalview.datamodel.SearchResultsI;
import jalview.io.DataSourceType;
import jalview.io.FileLoader;
+
import jalview.util.Platform;
import jalview.viewmodel.ViewportRanges;
import junit.extensions.PA;
@BeforeClass(alwaysRun = true)
public void setUp()
{
+ // 2.11.2 - beforeMethod setup
+ // Cache.loadProperties("test/jalview/io/testProps.jvprops");
+ //Cache.applicationProperties.setProperty("SHOW_IDENTITY",
+ // Boolean.TRUE.toString());
+ // af = new FileLoader().LoadFileWaitTillLoaded("examples/uniref50.fa",
+ // DataSourceType.FILE);
+ // /*
+ // * wait for Consensus thread to complete
+ // */
+ // do
+ // {
+ //try
+ //{
+ // Thread.sleep(50);
+ //} catch (InterruptedException x)
+ //{
+ //}
+ // } while (af.getViewport().getCalcManager().isWorking());
+
Cache.loadProperties(null);
- Cache.initLogger();
Desktop.getInstance().setVisible(false);
}
+ private AlignFrame af;
+
/**
* Test the method that computes wrapped width in residues, height of wrapped
* widths in pixels, and the number of widths visible
assertEquals(repeatingHeight, charHeight * (2 + al.getHeight()));
}
- @BeforeMethod(alwaysRun = true)
- public void setUp()
- {
- Cache.loadProperties("test/jalview/io/testProps.jvprops");
- Cache.applicationProperties.setProperty("SHOW_IDENTITY",
- Boolean.TRUE.toString());
- af = new FileLoader().LoadFileWaitTillLoaded("examples/uniref50.fa",
- DataSourceType.FILE);
-
- /*
- * wait for Consensus thread to complete
- */
- do
- {
- try
- {
- Thread.sleep(50);
- } catch (InterruptedException x)
- {
- }
- } while (af.getViewport().getCalcManager().isWorking());
- }
@Test(groups = "Functional")
public void testClear_HighlightAndSelection()
{