[webbeans-commits] Webbeans SVN: r3472 - tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/binding/enterprise.
webbeans-commits at lists.jboss.org
webbeans-commits at lists.jboss.org
Wed Aug 12 22:58:22 EDT 2009
Author: shane.bryzak at jboss.com
Date: 2009-08-12 22:58:21 -0400 (Wed, 12 Aug 2009)
New Revision: 3472
Added:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/binding/enterprise/Hairless.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/binding/enterprise/HairlessBinding.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/binding/enterprise/HairlessCat.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/binding/enterprise/SkinnyHairlessCat.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/binding/enterprise/SkinnyHairlessCatLocal.java
Modified:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/binding/enterprise/EnterpriseBindingDefinitionTest.java
Log:
more inheritance tests for 4.1
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/binding/enterprise/EnterpriseBindingDefinitionTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/binding/enterprise/EnterpriseBindingDefinitionTest.java 2009-08-13 02:36:36 UTC (rev 3471)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/binding/enterprise/EnterpriseBindingDefinitionTest.java 2009-08-13 02:58:21 UTC (rev 3472)
@@ -35,6 +35,16 @@
}
@Test
+ @SpecAssertion(section = "4.1", id = "ala")
+ public void testBindingNotDeclaredInheritedIsNotInherited() throws Exception
+ {
+ Set<? extends Annotation> bindings = getBeans(SkinnyHairlessCatLocal.class).iterator().next().getBindings();
+ assert annotationSetMatches(bindings, Any.class);
+
+ assert getBeans(SkinnyHairlessCatLocal.class, new HairlessBinding()).size() == 0;
+ }
+
+ @Test
@SpecAssertion(section = "4.1", id = "ap")
public void testBindingDeclaredInheritedIsIndirectlyInherited()
{
Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/binding/enterprise/Hairless.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/binding/enterprise/Hairless.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/binding/enterprise/Hairless.java 2009-08-13 02:58:21 UTC (rev 3472)
@@ -0,0 +1,24 @@
+package org.jboss.jsr299.tck.tests.definition.binding.enterprise;
+
+import static java.lang.annotation.ElementType.FIELD;
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.ElementType.PARAMETER;
+import static java.lang.annotation.ElementType.TYPE;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Inherited;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+import javax.enterprise.inject.BindingType;
+
+ at Target( { TYPE, METHOD, PARAMETER, FIELD })
+ at Retention(RUNTIME)
+ at Documented
+ at BindingType
+ at Inherited
+ at interface Hairless
+{
+
+}
Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/binding/enterprise/HairlessBinding.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/binding/enterprise/HairlessBinding.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/binding/enterprise/HairlessBinding.java 2009-08-13 02:58:21 UTC (rev 3472)
@@ -0,0 +1,8 @@
+package org.jboss.jsr299.tck.tests.definition.binding.enterprise;
+
+import javax.enterprise.inject.AnnotationLiteral;
+
+public class HairlessBinding extends AnnotationLiteral<Hairless> implements Hairless
+{
+
+}
Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/binding/enterprise/HairlessCat.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/binding/enterprise/HairlessCat.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/binding/enterprise/HairlessCat.java 2009-08-13 02:58:21 UTC (rev 3472)
@@ -0,0 +1,7 @@
+package org.jboss.jsr299.tck.tests.definition.binding.enterprise;
+
+ at Hairless
+class HairlessCat
+{
+
+}
Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/binding/enterprise/SkinnyHairlessCat.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/binding/enterprise/SkinnyHairlessCat.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/binding/enterprise/SkinnyHairlessCat.java 2009-08-13 02:58:21 UTC (rev 3472)
@@ -0,0 +1,6 @@
+package org.jboss.jsr299.tck.tests.definition.binding.enterprise;
+
+public class SkinnyHairlessCat extends HairlessCat implements SkinnyHairlessCatLocal
+{
+
+}
Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/binding/enterprise/SkinnyHairlessCatLocal.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/binding/enterprise/SkinnyHairlessCatLocal.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/binding/enterprise/SkinnyHairlessCatLocal.java 2009-08-13 02:58:21 UTC (rev 3472)
@@ -0,0 +1,9 @@
+package org.jboss.jsr299.tck.tests.definition.binding.enterprise;
+
+import javax.ejb.Local;
+
+ at Local
+public interface SkinnyHairlessCatLocal
+{
+
+}
More information about the weld-commits
mailing list