Author: akazakov
Date: 2012-08-29 20:14:50 -0400 (Wed, 29 Aug 2012)
New Revision: 43311
Added:
trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/validation/inject/incremental/
trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/validation/inject/incremental/BaseBean.java
trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/validation/inject/incremental/ExtensionManager.java
trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/validation/inject/incremental/IBase.java
trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/validation/inject/incremental/IExtension.broken
trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/validation/inject/incremental/IExtension.java
trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/validation/inject/incremental/IExtension.original
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/tck/validation/IncrementalValidationTest.java
Log:
https://issues.jboss.org/browse/JBIDE-12503 CDI Bean types are not updated
Added:
trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/validation/inject/incremental/BaseBean.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/validation/inject/incremental/BaseBean.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/validation/inject/incremental/BaseBean.java 2012-08-30
00:14:50 UTC (rev 43311)
@@ -0,0 +1,5 @@
+package org.jboss.jsr299.tck.tests.jbt.validation.inject.incremental;
+
+public class BaseBean implements IExtension {
+
+}
\ No newline at end of file
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/validation/inject/incremental/BaseBean.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added:
trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/validation/inject/incremental/ExtensionManager.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/validation/inject/incremental/ExtensionManager.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/validation/inject/incremental/ExtensionManager.java 2012-08-30
00:14:50 UTC (rev 43311)
@@ -0,0 +1,8 @@
+package org.jboss.jsr299.tck.tests.jbt.validation.inject.incremental;
+
+import javax.inject.Inject;
+
+public class ExtensionManager {
+
+ @Inject IBase extension;
+}
\ No newline at end of file
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/validation/inject/incremental/ExtensionManager.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added:
trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/validation/inject/incremental/IBase.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/validation/inject/incremental/IBase.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/validation/inject/incremental/IBase.java 2012-08-30
00:14:50 UTC (rev 43311)
@@ -0,0 +1,5 @@
+package org.jboss.jsr299.tck.tests.jbt.validation.inject.incremental;
+
+public interface IBase {
+
+}
\ No newline at end of file
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/validation/inject/incremental/IBase.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added:
trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/validation/inject/incremental/IExtension.broken
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/validation/inject/incremental/IExtension.broken
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/validation/inject/incremental/IExtension.broken 2012-08-30
00:14:50 UTC (rev 43311)
@@ -0,0 +1,5 @@
+package org.jboss.jsr299.tck.tests.jbt.validation.inject.incremental;
+
+public interface IExtension {
+
+}
\ No newline at end of file
Added:
trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/validation/inject/incremental/IExtension.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/validation/inject/incremental/IExtension.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/validation/inject/incremental/IExtension.java 2012-08-30
00:14:50 UTC (rev 43311)
@@ -0,0 +1,5 @@
+package org.jboss.jsr299.tck.tests.jbt.validation.inject.incremental;
+
+public interface IExtension extends IBase {
+
+}
\ No newline at end of file
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/validation/inject/incremental/IExtension.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added:
trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/validation/inject/incremental/IExtension.original
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/validation/inject/incremental/IExtension.original
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/validation/inject/incremental/IExtension.original 2012-08-30
00:14:50 UTC (rev 43311)
@@ -0,0 +1,5 @@
+package org.jboss.jsr299.tck.tests.jbt.validation.inject.incremental;
+
+public interface IExtension extends IBase {
+
+}
\ No newline at end of file
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/tck/validation/IncrementalValidationTest.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/tck/validation/IncrementalValidationTest.java 2012-08-29
23:59:09 UTC (rev 43310)
+++
trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/tck/validation/IncrementalValidationTest.java 2012-08-30
00:14:50 UTC (rev 43311)
@@ -126,7 +126,7 @@
interfaceFile.setContents(modifiedFile.getContents(), IFile.FORCE, new
NullProgressMonitor());
TestUtil.validate(bean);
AbstractResourceMarkerTest.assertMarkerIsNotCreated(bean,
CDIValidationMessages.ILLEGAL_TYPE_IN_TYPED_DECLARATION, 5);
-
+
IFile originalFile =
tckProject.getFile("JavaSource/org/jboss/jsr299/tck/tests/jbt/typed/LocalExtendedBean.original");
interfaceFile.setContents(originalFile.getContents(), IFile.FORCE, new
NullProgressMonitor());
TestUtil.validate(bean);
@@ -135,4 +135,24 @@
ResourcesUtils.setBuildAutomatically(saveAutoBuild);
}
}
+
+ public void testInjections() throws Exception {
+ boolean saveAutoBuild = ResourcesUtils.setBuildAutomatically(false);
+ try {
+ IFile bean =
tckProject.getFile("JavaSource/org/jboss/jsr299/tck/tests/jbt/validation/inject/incremental/ExtensionManager.java");
+ AbstractResourceMarkerTest.assertMarkerIsNotCreated(bean,
CDIValidationMessages.UNSATISFIED_INJECTION_POINTS, 7);
+ IFile interfaceFile =
tckProject.getFile("JavaSource/org/jboss/jsr299/tck/tests/jbt/validation/inject/incremental/IExtension.java");
+ IFile modifiedFile =
tckProject.getFile("JavaSource/org/jboss/jsr299/tck/tests/jbt/validation/inject/incremental/IExtension.broken");
+ interfaceFile.setContents(modifiedFile.getContents(), IFile.FORCE, new
NullProgressMonitor());
+ TestUtil.validate(bean);
+ AbstractResourceMarkerTest.assertMarkerIsCreated(bean,
CDIValidationMessages.UNSATISFIED_INJECTION_POINTS, 7);
+
+ IFile originalFile =
tckProject.getFile("JavaSource/org/jboss/jsr299/tck/tests/jbt/validation/inject/incremental/IExtension.original");
+ interfaceFile.setContents(originalFile.getContents(), IFile.FORCE, new
NullProgressMonitor());
+ TestUtil.validate(bean);
+ AbstractResourceMarkerTest.assertMarkerIsNotCreated(bean,
CDIValidationMessages.UNSATISFIED_INJECTION_POINTS, 7);
+ } finally {
+ ResourcesUtils.setBuildAutomatically(saveAutoBuild);
+ }
+ }
}
\ No newline at end of file