import junit.extensions.PA;
+@Test(singleThreaded = true)
public class SeqCanvasTest
{
@BeforeClass(alwaysRun = true)
public void setUp()
{
+ Thread.currentThread().setName("SeqCanvasTest Setup " + ++nTest);
+
Cache.initLogger();
Jalview.setSynchronous(true);
}
@Test(groups = "Functional")
public void testCalculateWrappedGeometry_noAnnotations()
{
+ Thread.currentThread().setName("SeqCanvasTest noAnn " + ++nTest);
AlignFrame af = new FileLoader().LoadFileWaitTillLoaded(
"examples/uniref50.fa", DataSourceType.FILE);
AlignViewport av = af.getViewport();
@Test(groups = "Functional")
public void testCalculateWrappedGeometry_withAnnotations()
{
+ Thread.currentThread().setName("SeqCanvasTest wAnn " + ++nTest);
AlignFrame af = new FileLoader().LoadFileWaitTillLoaded(
"examples/uniref50.fa", DataSourceType.FILE);
AlignViewport av = af.getViewport();
assertEquals(PA.getValue(testee, "wrappedVisibleWidths"), 3);
}
+ private static int nTest = 0;
/**
* Test simulates loading an unwrapped alignment, shrinking it vertically so
* not all sequences are visible, then changing to wrapped mode. The ranges
@Test(groups = "Functional")
public void testCalculateWrappedGeometry_fromScrolled()
{
+ Thread.currentThread().setName("SeqCanvasTest fromScrolled " + ++nTest);
AlignFrame af = new FileLoader().LoadFileWaitTillLoaded(
"examples/uniref50.fa", DataSourceType.FILE);
AlignViewport av = af.getViewport();