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

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Mon Sep 10 14:29:16 EDT 2012


Author: vrubezhny
Date: 2012-09-10 14:29:15 -0400 (Mon, 10 Sep 2012)
New Revision: 43565

Modified:
   trunk/common/tests/org.jboss.tools.common.base.test/src/org/jboss/tools/common/base/test/validation/AbstractAsYouTypeValidationTest.java
Log:
JBIDE-12418
Sometimes As-You-Type validation isn't invoked after a Java-String that contains EL is Copy-Pasted in Java editor 
JBIDE-12539
In some cases as-you-type validation removes all annotations 

JUnit Test Case is fixed

Modified: trunk/common/tests/org.jboss.tools.common.base.test/src/org/jboss/tools/common/base/test/validation/AbstractAsYouTypeValidationTest.java
===================================================================
--- trunk/common/tests/org.jboss.tools.common.base.test/src/org/jboss/tools/common/base/test/validation/AbstractAsYouTypeValidationTest.java	2012-09-10 18:28:46 UTC (rev 43564)
+++ trunk/common/tests/org.jboss.tools.common.base.test/src/org/jboss/tools/common/base/test/validation/AbstractAsYouTypeValidationTest.java	2012-09-10 18:29:15 UTC (rev 43565)
@@ -67,6 +67,10 @@
 	
 	public void openEditor(String fileName) {
 		this.fileName = fileName;
+		IFile testfile = project.getFile(fileName);
+//		System.out.println(testfile.toString() + ": testfile.exists(): " + testfile.exists() + ", testfile.isAccessible(): " + testfile.isAccessible());
+		assertTrue("Test file doesn't exist: " + project.getName() + "/" + fileName, 
+				(testfile.exists() && testfile.isAccessible()));
 		editorPart = WorkbenchUtils.openEditor(project.getName()
 				+ "/" + fileName); //$NON-NLS-1$
 		obtainEditor(editorPart);



More information about the jbosstools-commits mailing list