private JLabel statusBar;
- @Test(groups ={ "Functional" })
+ @Test(groups = { "Functional" })
public void testConstructor_prematureInstantiation()
{
try
}
}
- @Test(groups ={ "Functional" })
+ @Test(groups = { "Functional" })
public void testConstructor_wrongLayout()
{
statusPanel = new JPanel();
}
}
- @Test(groups ={ "Functional" })
+ @Test(groups = { "Functional" })
public void testSetProgressBar()
{
statusPanel = new JPanel();
* Add 'hello'
*/
pb.setProgressBar("hello", 1L);
- verifyProgress(layout, new String[]
- { "hello" });
+ verifyProgress(layout, new String[] { "hello" });
/*
* Add 'world'
*/
pb.setProgressBar("world", 2L);
- verifyProgress(layout, new String[]
- { "hello", "world" });
+ verifyProgress(layout, new String[] { "hello", "world" });
/*
* Remove 'hello' with no status bar update
*/
pb.setProgressBar(null, 1L);
- verifyProgress(layout, new String[]
- { "world" });
+ verifyProgress(layout, new String[] { "world" });
assertEquals("nothing", statusBar.getText());
/*
* Remove 'world' with status bar update
*/
pb.setProgressBar("goodbye", 2L);
- verifyProgress(layout, new String[]
- {});
+ verifyProgress(layout, new String[] {});
assertEquals("goodbye", statusBar.getText());
}