[webbeans-commits] Webbeans SVN: r3238 - tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/binding/members/annotation.

webbeans-commits at lists.jboss.org webbeans-commits at lists.jboss.org
Sun Jul 26 13:35:09 EDT 2009


Author: pete.muir at jboss.org
Date: 2009-07-26 13:35:08 -0400 (Sun, 26 Jul 2009)
New Revision: 3238

Added:
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/binding/members/annotation/TheBeatles.java
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/binding/members/annotation/Watch.java
Modified:
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/binding/members/annotation/BindingAnnotationWithMemberTest.java
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/binding/members/annotation/Expensive_Broken.java
Log:
The annotation must be used for it to be validated. The spec does *not* require validation of all annotations on the classpath AFAIK

Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/binding/members/annotation/BindingAnnotationWithMemberTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/binding/members/annotation/BindingAnnotationWithMemberTest.java	2009-07-25 23:25:44 UTC (rev 3237)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/binding/members/annotation/BindingAnnotationWithMemberTest.java	2009-07-26 17:35:08 UTC (rev 3238)
@@ -17,6 +17,7 @@
 package org.jboss.jsr299.tck.tests.lookup.binding.members.annotation;
 
 import org.hibernate.tck.annotations.SpecAssertion;
+import org.jboss.jsr299.tck.AbstractJSR299Test;
 import org.jboss.jsr299.tck.DefinitionError;
 import org.jboss.testharness.impl.packaging.Artifact;
 import org.jboss.testharness.impl.packaging.ExpectedDeploymentException;
@@ -28,12 +29,14 @@
  */
 @Artifact
 @ExpectedDeploymentException(DefinitionError.class)
-public class BindingAnnotationWithMemberTest {
+public class BindingAnnotationWithMemberTest extends AbstractJSR299Test
+{
 
-	@Test(groups="ri-broken")
-	@SpecAssertion(section="5.3.5", id="cb")
-	public void testAnnotationMemberWithoutNonBinding() {
-		assert false;
-	}
-	
+   @Test(groups = "ri-broken")
+   @SpecAssertion(section = "5.3.5", id = "cb")
+   public void testAnnotationMemberWithoutNonBinding()
+   {
+      assert false;
+   }
+
 }

Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/binding/members/annotation/Expensive_Broken.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/binding/members/annotation/Expensive_Broken.java	2009-07-25 23:25:44 UTC (rev 3237)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/binding/members/annotation/Expensive_Broken.java	2009-07-26 17:35:08 UTC (rev 3238)
@@ -16,20 +16,21 @@
  */
 package org.jboss.jsr299.tck.tests.lookup.binding.members.annotation;
 
+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.Retention;
 import java.lang.annotation.Target;
 
 import javax.enterprise.inject.BindingType;
 
-import static java.lang.annotation.ElementType.METHOD;
-import static java.lang.annotation.ElementType.FIELD;
-import static java.lang.annotation.ElementType.PARAMETER;
-import static java.lang.annotation.ElementType.TYPE;
-import static java.lang.annotation.RetentionPolicy.RUNTIME;
-
 @BindingType
 @Retention(RUNTIME)
 @Target( { METHOD, FIELD, PARAMETER, TYPE })
- at interface Expensive_Broken {
-	SimpleAnnotation member();
+ at interface Expensive_Broken
+{
+   SimpleAnnotation member();
 }

Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/binding/members/annotation/TheBeatles.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/binding/members/annotation/TheBeatles.java	                        (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/binding/members/annotation/TheBeatles.java	2009-07-26 17:35:08 UTC (rev 3238)
@@ -0,0 +1,29 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,  
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.jboss.jsr299.tck.tests.lookup.binding.members.annotation;
+
+/**
+ * @author pmuir
+ *
+ */
+public class TheBeatles
+{
+   
+   @Expensive_Broken(member = @SimpleAnnotation) Watch watch;
+   
+
+}


Property changes on: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/binding/members/annotation/TheBeatles.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/binding/members/annotation/Watch.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/binding/members/annotation/Watch.java	                        (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/binding/members/annotation/Watch.java	2009-07-26 17:35:08 UTC (rev 3238)
@@ -0,0 +1,27 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,  
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.jboss.jsr299.tck.tests.lookup.binding.members.annotation;
+
+/**
+ * @author pmuir
+ * 
+ */
+ at Expensive_Broken(member = @SimpleAnnotation)
+public class Watch
+{
+
+}


Property changes on: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/binding/members/annotation/Watch.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain




More information about the weld-commits mailing list