Author: scabanovich
Date: 2011-10-21 22:58:59 -0400 (Fri, 21 Oct 2011)
New Revision: 35920
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/tck/ResolvedTypesCacheTest.java
Log:
It is necessary now to get new reference to cdiProject. I do not know why.
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/tck/ResolvedTypesCacheTest.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/tck/ResolvedTypesCacheTest.java 2011-10-22
00:41:10 UTC (rev 35919)
+++
trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/tck/ResolvedTypesCacheTest.java 2011-10-22
02:58:59 UTC (rev 35920)
@@ -21,6 +21,7 @@
import org.eclipse.jdt.core.IField;
import org.eclipse.jdt.core.IJavaProject;
import org.eclipse.jdt.core.IType;
+import org.jboss.tools.cdi.core.CDICorePlugin;
import org.jboss.tools.cdi.core.IBean;
import org.jboss.tools.cdi.core.IInjectionPointField;
import org.jboss.tools.common.model.util.EclipseResourceUtil;
@@ -56,6 +57,7 @@
static String PATH_C =
"JavaSource/org/jboss/jsr299/tck/tests/jbt/resolution/cache/C.java";
public void testCache() throws CoreException, IOException {
+ cdiProject = CDICorePlugin.getCDIProject(tckProject, false);
IJavaProject javaProject = EclipseResourceUtil.getJavaProject(tckProject);
IType t = EclipseJavaUtil.findType(javaProject,
"org.jboss.jsr299.tck.tests.jbt.resolution.cache.A");
assertEquals("org.jboss.jsr299.tck.tests.jbt.resolution.cache.C.D",
EclipseJavaUtil.resolveType(t, "B.D"));
Show replies by date