[jbosstools-commits] JBoss Tools SVN: r43513 - in trunk/cdi/tests: org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/marker and 1 other directory.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Fri Sep 7 14:02:36 EDT 2012


Author: dazarov
Date: 2012-09-07 14:02:36 -0400 (Fri, 07 Sep 2012)
New Revision: 43513

Modified:
   trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/quickfixes/NonExistingAlternative.qfxresult
   trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/quickfixes/NonExistingStereotype.qfxresult
   trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/marker/CDIQuickFixTest.java
Log:
Make CDI Quick Fixes work for As-You-Type validator annotations https://issues.jboss.org/browse/JBIDE-12328

Modified: trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/quickfixes/NonExistingAlternative.qfxresult
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/quickfixes/NonExistingAlternative.qfxresult	2012-09-07 15:54:56 UTC (rev 43512)
+++ trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/quickfixes/NonExistingAlternative.qfxresult	2012-09-07 18:02:36 UTC (rev 43513)
@@ -2,7 +2,7 @@
 <beans xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://jboss.org/schema/cdi/beans_1_0.xsd">
 	<alternatives>
 		<class>
-			org.jboss.jsr299.tck.tests.policy.broken.incorrect.name.NonExistingClass
+			com.acme.NonExistingClass
 		</class>
 	</alternatives>
 </beans>
\ No newline at end of file

Modified: trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/quickfixes/NonExistingStereotype.qfxresult
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/quickfixes/NonExistingStereotype.qfxresult	2012-09-07 15:54:56 UTC (rev 43512)
+++ trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/quickfixes/NonExistingStereotype.qfxresult	2012-09-07 18:02:36 UTC (rev 43513)
@@ -3,7 +3,7 @@
 	<alternatives>
 		<stereotype>
 			<!-- Some comment -->
-			org.jboss.jsr299.tck.tests.policy.broken.not.policy.stereotype.NotExistingStereotype
+			com.acme.NotExistingStereotype
 		</stereotype>
 	</alternatives>
 </beans>
\ No newline at end of file

Modified: trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/marker/CDIQuickFixTest.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/marker/CDIQuickFixTest.java	2012-09-07 15:54:56 UTC (rev 43512)
+++ trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/marker/CDIQuickFixTest.java	2012-09-07 18:02:36 UTC (rev 43513)
@@ -114,38 +114,38 @@
 				DeleteAnnotationMarkerResolution.class, true);
 	}
 	
-	public void _testCreateBeanClassResolution() throws CoreException{
+	public void testCreateBeanClassResolution() throws CoreException{
 		util.checkProposal(tckProject,
 				"WebContent/WEB-INF/beans.xml",
 				"JavaSource/org/jboss/jsr299/tck/tests/jbt/quickfixes/NonExistingAlternative.qfxresult",
-				"",
+				"com.acme.NonExistingClass",
 				CDIValidationErrorManager.UNKNOWN_ALTERNATIVE_BEAN_CLASS_NAME_ID,
 				CreateCDIElementMarkerResolution.class, false);
 	}
 
-	public void _testCreateStereotypeResolution() throws CoreException{
+	public void testCreateStereotypeResolution() throws CoreException{
 		util.checkProposal(tckProject,
 				"WebContent/WEB-INF/beans.xml",
 				"JavaSource/org/jboss/jsr299/tck/tests/jbt/quickfixes/NonExistingStereotype.qfxresult",
-				"",
+				"com.acme.NotExistingStereotype",
 				CDIValidationErrorManager.UNKNOWN_ALTERNATIVE_ANNOTATION_NAME_ID,
 				CreateCDIElementMarkerResolution.class, false);
 	}
 	
-	public void _testCreateDecoratorResolution() throws CoreException{
+	public void testCreateDecoratorResolution() throws CoreException{
 		util.checkProposal(tckProject,
 				"WebContent/WEB-INF/beans.xml",
 				"JavaSource/org/jboss/jsr299/tck/tests/jbt/quickfixes/NonExistingDecorator.qfxresult",
-				"",
+				"com.acme.NonExistingDecoratorClass",
 				CDIValidationErrorManager.UNKNOWN_DECORATOR_BEAN_CLASS_NAME_ID,
 				CreateCDIElementMarkerResolution.class, false);
 	}
 
-	public void _testCreateInterceptorResolution() throws CoreException{
+	public void testCreateInterceptorResolution() throws CoreException{
 		util.checkProposal(tckProject,
 				"WebContent/WEB-INF/beans.xml",
 				"JavaSource/org/jboss/jsr299/tck/tests/jbt/quickfixes/NonExistingInterceptor.qfxresult",
-				"",
+				"com.acme.NonExistingInterceptorClass",
 				CDIValidationErrorManager.UNKNOWN_INTERCEPTOR_CLASS_NAME_ID,
 				CreateCDIElementMarkerResolution.class, false);
 	}



More information about the jbosstools-commits mailing list