[jbosstools-commits] JBoss Tools SVN: r44118 - trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/tck/validation.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Fri Sep 28 12:44:55 EDT 2012


Author: akazakov
Date: 2012-09-28 12:44:55 -0400 (Fri, 28 Sep 2012)
New Revision: 44118

Modified:
   trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/tck/validation/CoreValidationTest.java
Log:
https://issues.jboss.org/browse/JBIDE-12595 Disabling JAX-RS validator doesn't affect resources validation
https://issues.jboss.org/browse/JBIDE-12741 CDI (and other JBT common validators) is disabled for workspace if you disable it for project


Modified: trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/tck/validation/CoreValidationTest.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/tck/validation/CoreValidationTest.java	2012-09-28 16:44:44 UTC (rev 44117)
+++ trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/tck/validation/CoreValidationTest.java	2012-09-28 16:44:55 UTC (rev 44118)
@@ -46,12 +46,12 @@
 	public void testDisabledValidator() throws Exception {
 		IPreferenceStore preferenceStore = CDICorePlugin.getDefault().getPreferenceStore();
 		try {
-			preferenceStore.setValue(SeverityPreferences.ENABLE_BLOCK_PREFERENCE_NAME, false);
+			preferenceStore.setValue(SeverityPreferences.ENABLE_BLOCK_PREFERENCE_NAME, SeverityPreferences.DISABLE);
 			((IPersistentPreferenceStore)preferenceStore).save();
-	
+
 			assertNull("CDICoreValidator is still enabled.", getCDIValidator());
 		} finally {
-			preferenceStore.setValue(SeverityPreferences.ENABLE_BLOCK_PREFERENCE_NAME, true);
+			preferenceStore.setValue(SeverityPreferences.ENABLE_BLOCK_PREFERENCE_NAME, SeverityPreferences.ENABLE);
 			((IPersistentPreferenceStore)preferenceStore).save();
 		}
 		assertNotNull("CDICoreValidator is disabled.", getCDIValidator());



More information about the jbosstools-commits mailing list