Author: scabanovich
Date: 2012-10-12 18:59:36 -0400 (Fri, 12 Oct 2012)
New Revision: 44497
Added:
trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/lookup/pack/annotation/
trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/lookup/pack/annotation/A.java
trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/lookup/pack/annotation/E.java
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/lookup/pack/package-info.java
trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/tck/lookup/PackageInfoTest.java
Log:
JBIDE-12841
https://issues.jboss.org/browse/JBIDE-12841
Test is modified.
Added:
trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/lookup/pack/annotation/A.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/lookup/pack/annotation/A.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/lookup/pack/annotation/A.java 2012-10-12
22:59:36 UTC (rev 44497)
@@ -0,0 +1,5 @@
+package org.jboss.jsr299.tck.tests.lookup.pack.annotation;
+
+public @interface A {
+ E value();
+}
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/lookup/pack/annotation/A.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added:
trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/lookup/pack/annotation/E.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/lookup/pack/annotation/E.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/lookup/pack/annotation/E.java 2012-10-12
22:59:36 UTC (rev 44497)
@@ -0,0 +1,6 @@
+package org.jboss.jsr299.tck.tests.lookup.pack.annotation;
+
+public enum E {
+ ONE,
+ TWO
+}
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/lookup/pack/annotation/E.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/lookup/pack/package-info.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/lookup/pack/package-info.java 2012-10-12
22:51:15 UTC (rev 44496)
+++
trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/lookup/pack/package-info.java 2012-10-12
22:59:36 UTC (rev 44497)
@@ -1,4 +1,4 @@
-(a)Target(ElementType.FIELD)
+(a)A(E.ONE)
package org.jboss.jsr299.tck.tests.lookup.pack;
-import java.lang.annotation.Target;
-import java.lang.annotation.ElementType;
+import org.jboss.jsr299.tck.tests.lookup.pack.annotation.A;
+import org.jboss.jsr299.tck.tests.lookup.pack.annotation.E;
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/tck/lookup/PackageInfoTest.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/tck/lookup/PackageInfoTest.java 2012-10-12
22:51:15 UTC (rev 44496)
+++
trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/tck/lookup/PackageInfoTest.java 2012-10-12
22:59:36 UTC (rev 44497)
@@ -23,15 +23,16 @@
public class PackageInfoTest extends TCKTest {
/**
-
-s * @throws CoreException
+ *
+ * @throws CoreException
*/
public void testDeclaration() throws CoreException {
PackageDefinition d =
cdiProject.getNature().getDefinitions().getPackageDefinition("org.jboss.jsr299.tck.tests.lookup.pack");
assertNotNull(d);
- AnnotationDeclaration a = d.getAnnotation("java.lang.annotation.Target");
+ AnnotationDeclaration a =
d.getAnnotation("org.jboss.jsr299.tck.tests.lookup.pack.annotation.A");
+ assertNotNull(a);
Object o = a.getMemberValue("value");
- assertEquals("java.lang.annotation.ElementType.FIELD", o);
+ assertEquals("org.jboss.jsr299.tck.tests.lookup.pack.annotation.E.ONE", o);
}
}
\ No newline at end of file