package jalview.gui;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
+import static org.testng.AssertJUnit.assertEquals;
+import static org.testng.AssertJUnit.assertTrue;
import java.awt.Component;
import java.awt.FlowLayout;
import javax.swing.JLabel;
import javax.swing.JPanel;
-import org.junit.Test;
+import org.testng.Assert;
+import org.testng.annotations.Test;
public class ProgressBarTest
{
private JLabel statusBar;
- @Test
+ @Test(groups ={ "Functional" })
public void testConstructor_prematureInstantiation()
{
try
{
new ProgressBar(null, null);
- fail("Expected exception");
+ Assert.fail("Expected exception");
} catch (NullPointerException e)
{
// expected
}
}
- @Test
+ @Test(groups ={ "Functional" })
public void testConstructor_wrongLayout()
{
statusPanel = new JPanel();
try
{
new ProgressBar(statusPanel, null);
- fail("expected exception");
+ Assert.fail("expected exception");
} catch (IllegalArgumentException e)
{
// expected
}
}
- @Test
+ @Test(groups ={ "Functional" })
public void testSetProgressBar()
{
statusPanel = new JPanel();