Author: jjankovi
Date: 2012-01-13 04:31:39 -0500 (Fri, 13 Jan 2012)
New Revision: 37815
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/quickfix/test/IBindingValidationQuickFixTest.java
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/quickfix/test/QualifierValidationQuickFixTest.java
Log:
Correction of QuickFixTest to work with 5.0.0Beta1
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/quickfix/test/IBindingValidationQuickFixTest.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/quickfix/test/IBindingValidationQuickFixTest.java 2012-01-13
09:30:30 UTC (rev 37814)
+++
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/quickfix/test/IBindingValidationQuickFixTest.java 2012-01-13
09:31:39 UTC (rev 37815)
@@ -46,7 +46,10 @@
checkQuickFix(CDIAnnotationsType.NONBINDING, CDIWizardType.INTERCEPTOR_BINDING);
- editResourceUtil.replaceInEditor("@Nonbinding AAnnotation",
"String[]");
+ editResourceUtil.replaceClassContentByResource(QuickFixTestBase.class
+ .getResourceAsStream("/resources/quickfix/interceptorBinding/IBindingWithStringArray.java.cdi"),
+ false);
+ editResourceUtil.replaceInEditor("IBindingComponent", className);
checkQuickFix(CDIAnnotationsType.NONBINDING, CDIWizardType.INTERCEPTOR_BINDING);
}
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/quickfix/test/QualifierValidationQuickFixTest.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/quickfix/test/QualifierValidationQuickFixTest.java 2012-01-13
09:30:30 UTC (rev 37814)
+++
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/quickfix/test/QualifierValidationQuickFixTest.java 2012-01-13
09:31:39 UTC (rev 37815)
@@ -81,7 +81,9 @@
checkQuickFix(CDIAnnotationsType.NONBINDING, CDIWizardType.QUALIFIER);
- editResourceUtil.replaceInEditor("@Nonbinding AAnnotation",
"String[]");
+ editResourceUtil.replaceClassContentByResource(QuickFixTestBase.class
+ .getResourceAsStream("/resources/quickfix/qualifier/QualifierWithStringArray.java.cdi"),
false);
+ editResourceUtil.replaceInEditor("QualifierComponent", className);
checkQuickFix(CDIAnnotationsType.NONBINDING, CDIWizardType.QUALIFIER);
}
Show replies by date