@Test(
groups =
{ "Functional" },
- dataProvider = "structureOpeningArgsParams")
+ dataProvider = "structureOpeningArgsParams",
+ singleThreaded = true)
public void structureOpeningArgsTest(String cmdLine, int seqNum,
int annNum, int viewerNum)
{
String[] args = cmdLine.split("\\s+");
Jalview.main(args);
+ try
+ {
+ // sleep for slow build server to open viewer window
+ Thread.sleep(2500);
+ } catch (InterruptedException e)
+ {
+ e.printStackTrace();
+ }
+
AlignFrame[] afs = Desktop.getAlignFrames();
Assert.assertNotNull(afs);
Assert.assertTrue(afs.length > 0);
AlignmentAnnotation[] aas = al.getAlignmentAnnotation();
int visibleAnn = 0;
+ int dcount = 0;
for (AlignmentAnnotation aa : aas)
{
+ System.err.println("##### DIAGNOSIS: annotation " + dcount
+ + " is labelled '" + aa.label + "'");
if (aa.visible)
visibleAnn++;
}
if (viewerNum > -1)
{
- try
- {
- // sleep for slow build server to open viewer window
- Thread.sleep(2000);
- } catch (InterruptedException e)
- {
- e.printStackTrace();
- }
List<StructureViewerBase> openViewers = Desktop.instance
.getStructureViewers(ap, null);
Assert.assertNotNull(openViewers);
int count = 0;
- int dcount = 0;
for (StructureViewerBase svb : openViewers)
{
- System.err.println("##### DIAGNOSIS: annotation " + dcount
- + " is called '" + svb.getName() + "'");
if (svb.isVisible())
count++;
}