List<StructureViewerBase> openViewers = Desktop.instance
.getStructureViewers(ap, null);
Assert.assertNotNull(openViewers);
- Assert.assertEquals(openViewers.size(), viewerNum,
+ int count = 0;
+ for (StructureViewerBase svb : openViewers)
+ {
+ if (svb.isVisible())
+ count++;
+ }
+ Assert.assertEquals(count, viewerNum,
"Wrong number of structure viewers opened");
}
}
List<StructureViewerBase> openViewers = Desktop.instance
.getStructureViewers(ap, null);
Assert.assertNotNull(openViewers);
+ int count = 0;
+ for (StructureViewerBase svb : openViewers)
+ {
+ if (svb.isVisible())
+ count++;
+ }
Assert.assertEquals("Wrong number of structure viewers opened",
- viewerNum, openViewers.size());
+ viewerNum, count);
+
}
if (af != null)