[jbosstools-commits] JBoss Tools SVN: r44073 - trunk/common/tests/org.jboss.tools.common.ui.test/src/org/jboss/tools/common/ui.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Wed Sep 26 19:45:28 EDT 2012


Author: scabanovich
Date: 2012-09-26 19:45:28 -0400 (Wed, 26 Sep 2012)
New Revision: 44073

Modified:
   trunk/common/tests/org.jboss.tools.common.ui.test/src/org/jboss/tools/common/ui/NewServiceProviderWizardTest.java
Log:
JBIDE-9443
https://issues.jboss.org/browse/JBIDE-9443
New Service Provider wizard. Test.


Modified: trunk/common/tests/org.jboss.tools.common.ui.test/src/org/jboss/tools/common/ui/NewServiceProviderWizardTest.java
===================================================================
--- trunk/common/tests/org.jboss.tools.common.ui.test/src/org/jboss/tools/common/ui/NewServiceProviderWizardTest.java	2012-09-26 23:42:45 UTC (rev 44072)
+++ trunk/common/tests/org.jboss.tools.common.ui.test/src/org/jboss/tools/common/ui/NewServiceProviderWizardTest.java	2012-09-26 23:45:28 UTC (rev 44073)
@@ -119,11 +119,15 @@
 
 		try {
 			NewServiceWizardPage page = (NewServiceWizardPage)context.page;
-			
+
+			String message = page.getErrorMessage();			
+			String expectedMessage = CommonUIMessages.NEW_SERVICE_WIZARD_SERVICE_TYPE_EMPTY;
+			assertEquals(expectedMessage, message);
+
 			String serviceType = "java.util.List111";
 			page.setServiceType(serviceType);			
-			String message = page.getErrorMessage();			
-			String expectedMessage = NLS.bind(CommonUIMessages.NEW_SERVICE_WIZARD_SERVICE_TYPE_NOT_EXISTS, serviceType);
+			message = page.getErrorMessage();			
+			expectedMessage = NLS.bind(CommonUIMessages.NEW_SERVICE_WIZARD_SERVICE_TYPE_NOT_EXISTS, serviceType);
 			assertEquals(expectedMessage, message);
 			
 			serviceType = "java.util.List";



More information about the jbosstools-commits mailing list