public class PaintRefresherTest
{
// TODO would prefer PaintRefresher to be a single rather than static
- @BeforeMethod(alwaysRun = true)
+ @BeforeMethod(alwaysRun = true)
public void setUp()
{
PaintRefresher.components.clear();
PaintRefresher.components.clear();
}
- @Test(groups ={ "Functional" })
+ @Test(groups = { "Functional" })
public void testRegister()
{
JPanel jp = new JPanel();
assertTrue(registered.get("44").contains(jp4));
}
- @Test(groups ={ "Functional" })
+ @Test(groups = { "Functional" })
public void testRemoveComponent()
{
Map<String, List<Component>> registered = PaintRefresher.components;
-
+
// no error with an empty PaintRefresher
JPanel jp = new JPanel();
JPanel jp2 = new JPanel();
assertTrue(registered.get("22").contains(jp2));
}
- @Test(groups ={ "Functional" })
+ @Test(groups = { "Functional" })
public void testGetAssociatedPanels()
{
- SequenceI [] seqs = new SequenceI[]{new Sequence("", "ABC")};
+ SequenceI[] seqs = new SequenceI[] { new Sequence("", "ABC") };
Alignment al = new Alignment(seqs);
/*
.getSequenceSetId());
assertEquals(1, panels.length);
assertSame(ap1, panels[0]);
-
+
panels = PaintRefresher.getAssociatedPanels(av.getSequenceSetId() + 1);
assertEquals(0, panels.length);
}