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

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Mon Sep 10 13:13:41 EDT 2012


Author: dazarov
Date: 2012-09-10 13:13:41 -0400 (Mon, 10 Sep 2012)
New Revision: 43560

Modified:
   trunk/common/tests/org.jboss.tools.common.base.test/src/org/jboss/tools/common/base/test/QuickFixTestUtil.java
Log:
Make CDI Quick Fixes work for As-You-Type validator annotations https://issues.jboss.org/browse/JBIDE-12328

Modified: trunk/common/tests/org.jboss.tools.common.base.test/src/org/jboss/tools/common/base/test/QuickFixTestUtil.java
===================================================================
--- trunk/common/tests/org.jboss.tools.common.base.test/src/org/jboss/tools/common/base/test/QuickFixTestUtil.java	2012-09-10 17:13:25 UTC (rev 43559)
+++ trunk/common/tests/org.jboss.tools.common.base.test/src/org/jboss/tools/common/base/test/QuickFixTestUtil.java	2012-09-10 17:13:41 UTC (rev 43560)
@@ -138,28 +138,28 @@
 			checkForAddSuppressWarnings(file, annotation, proposals);
 			for(IJavaCompletionProposal proposal : proposals){
 				if (proposal.getClass().equals(proposalClass)) {
-					if(checkResult){
-						if(proposal instanceof TestableResolutionWithRefactoringProcessor){
-							RefactoringProcessor processor = ((TestableResolutionWithRefactoringProcessor)proposal).getRefactoringProcessor();
-							
-							RefactoringStatus status = processor.checkInitialConditions(new NullProgressMonitor());
-							
-							Assert.assertNull("Rename processor returns fatal error", status.getEntryMatchingSeverity(RefactoringStatus.FATAL));
-	
-							status = processor.checkFinalConditions(new NullProgressMonitor(), null);
-	
-							Assert.assertNull("Rename processor returns fatal error", status.getEntryMatchingSeverity(RefactoringStatus.FATAL));
-	
-							CompositeChange rootChange = (CompositeChange)processor.createChange(new NullProgressMonitor());
-							
-							rootChange.perform(new NullProgressMonitor());
-						} else if(proposal instanceof TestableResolutionWithDialog){
-							((TestableResolutionWithDialog) proposal).runForTest(null);
-						} else {
-							proposal.apply(document);
-						}
-	
-					}
+//					if(checkResult){
+//						if(proposal instanceof TestableResolutionWithRefactoringProcessor){
+//							RefactoringProcessor processor = ((TestableResolutionWithRefactoringProcessor)proposal).getRefactoringProcessor();
+//							
+//							RefactoringStatus status = processor.checkInitialConditions(new NullProgressMonitor());
+//							
+//							Assert.assertNull("Rename processor returns fatal error", status.getEntryMatchingSeverity(RefactoringStatus.FATAL));
+//	
+//							status = processor.checkFinalConditions(new NullProgressMonitor(), null);
+//	
+//							Assert.assertNull("Rename processor returns fatal error", status.getEntryMatchingSeverity(RefactoringStatus.FATAL));
+//	
+//							CompositeChange rootChange = (CompositeChange)processor.createChange(new NullProgressMonitor());
+//							
+//							rootChange.perform(new NullProgressMonitor());
+//						} else if(proposal instanceof TestableResolutionWithDialog){
+//							((TestableResolutionWithDialog) proposal).runForTest(null);
+//						} else {
+//							proposal.apply(document);
+//						}
+//	
+//					}
 					return;
 				}
 			}



More information about the jbosstools-commits mailing list