import javax.swing.JPanel;
import org.testng.Assert;
-import org.testng.annotations.BeforeMethod;
+import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
public class JvOptionPaneTest
{
+ @BeforeClass(alwaysRun = true)
+ public void setUpJvOptionPane()
+ {
+ JvOptionPane.setInteractiveMode(false);
+ JvOptionPane.setMockResponse(JvOptionPane.CANCEL_OPTION);
+ }
+
Component parentComponent = null;
String message = "Hello World!";
Object[] selectionValues = null;
- @BeforeMethod(alwaysRun = true)
- public void setUp()
- {
- JvOptionPane.setInteractiveMode(false);
- JvOptionPane.setMockResponse(JvOptionPane.CANCEL_OPTION);
- }
@Test(groups = { "Functional" })
public void showConfirmDialogFamilyTest()