[jbosstools-commits] JBoss Tools SVN: r22367 - branches/3.2.helios/common/tests/org.jboss.tools.common.model.ui.test/src/org/jboss/tools/common/model/ui/reporting.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Thu May 27 08:35:19 EDT 2010


Author: akazakov
Date: 2010-05-27 08:35:18 -0400 (Thu, 27 May 2010)
New Revision: 22367

Modified:
   branches/3.2.helios/common/tests/org.jboss.tools.common.model.ui.test/src/org/jboss/tools/common/model/ui/reporting/ReportProblemWizardTest.java
Log:
https://jira.jboss.org/browse/JBIDE-6375 Fixed ReportProblemWizardTest

Modified: branches/3.2.helios/common/tests/org.jboss.tools.common.model.ui.test/src/org/jboss/tools/common/model/ui/reporting/ReportProblemWizardTest.java
===================================================================
--- branches/3.2.helios/common/tests/org.jboss.tools.common.model.ui.test/src/org/jboss/tools/common/model/ui/reporting/ReportProblemWizardTest.java	2010-05-27 10:25:47 UTC (rev 22366)
+++ branches/3.2.helios/common/tests/org.jboss.tools.common.model.ui.test/src/org/jboss/tools/common/model/ui/reporting/ReportProblemWizardTest.java	2010-05-27 12:35:18 UTC (rev 22367)
@@ -10,29 +10,29 @@
  ******************************************************************************/
 package org.jboss.tools.common.model.ui.reporting;
 
+import junit.framework.TestCase;
+
 import org.eclipse.swt.widgets.Shell;
 import org.jboss.tools.common.model.ui.ModelUIPlugin;
 import org.jboss.tools.common.model.ui.wizards.query.IQueryDialog;
 
-import junit.extensions.ExceptionTestCase;
-import junit.framework.AssertionFailedError;
-import junit.framework.TestCase;
-
 /**
  * @author eskimo
  *
  */
-public class ReportProblemWizardTest extends ExceptionTestCase {
+public class ReportProblemWizardTest extends TestCase {
 
-	public ReportProblemWizardTest() {
-		super("testReportProblemWizard", NullPointerException.class);
-	}
   //FIXME(modular)
 	public void testReportProblemWizardFixMe() {
-		Shell shell = ModelUIPlugin.getDefault().getWorkbench().getActiveWorkbenchWindow().getShell();
-		IQueryDialog reportWiz = new ReportProblemWizard().createDialog(shell);
-		reportWiz.getDialog().setBlockOnOpen(false);
-		reportWiz.getDialog().open();
-		reportWiz.getDialog().close();
+		try {
+			Shell shell = ModelUIPlugin.getDefault().getWorkbench().getActiveWorkbenchWindow().getShell();
+			IQueryDialog reportWiz = new ReportProblemWizard().createDialog(shell);
+			reportWiz.getDialog().setBlockOnOpen(false);
+			reportWiz.getDialog().open();
+			reportWiz.getDialog().close();
+		} catch (NullPointerException e) {
+			return;
+		}
+		fail("Expected NullPointerException");
 	}
-}
+}
\ No newline at end of file



More information about the jbosstools-commits mailing list