[webbeans-commits] Webbeans SVN: r2137 - in tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/stereotype: session and 1 other directory.

webbeans-commits at lists.jboss.org webbeans-commits at lists.jboss.org
Mon Mar 23 01:25:19 EDT 2009


Author: shane.bryzak at jboss.com
Date: 2009-03-23 01:25:18 -0400 (Mon, 23 Mar 2009)
New Revision: 2137

Added:
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/stereotype/session/
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/stereotype/session/Animal.java
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/stereotype/session/AnimalStereotype.java
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/stereotype/session/BorderCollie.java
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/stereotype/session/BorderCollieLocal.java
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/stereotype/session/LongHairedDog.java
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/stereotype/session/SessionStereotypeDefinitionTest.java
Log:
4.2 session bean tests

Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/stereotype/session/Animal.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/stereotype/session/Animal.java	                        (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/stereotype/session/Animal.java	2009-03-23 05:25:18 UTC (rev 2137)
@@ -0,0 +1,6 @@
+package org.jboss.jsr299.tck.tests.definition.stereotype.session;
+
+interface Animal
+{
+
+}

Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/stereotype/session/AnimalStereotype.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/stereotype/session/AnimalStereotype.java	                        (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/stereotype/session/AnimalStereotype.java	2009-03-23 05:25:18 UTC (rev 2137)
@@ -0,0 +1,23 @@
+package org.jboss.jsr299.tck.tests.definition.stereotype.session;
+
+import static java.lang.annotation.ElementType.FIELD;
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.ElementType.TYPE;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Inherited;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+import javax.annotation.Stereotype;
+import javax.context.RequestScoped;
+
+ at Stereotype(requiredTypes=Animal.class)
+ at Target( { TYPE, METHOD, FIELD })
+ at Retention(RUNTIME)
+ at RequestScoped
+ at Inherited
+ at interface AnimalStereotype
+{
+
+}
\ No newline at end of file

Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/stereotype/session/BorderCollie.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/stereotype/session/BorderCollie.java	                        (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/stereotype/session/BorderCollie.java	2009-03-23 05:25:18 UTC (rev 2137)
@@ -0,0 +1,9 @@
+package org.jboss.jsr299.tck.tests.definition.stereotype.session;
+
+import javax.ejb.Stateful;
+
+ at Stateful
+public class BorderCollie extends LongHairedDog implements BorderCollieLocal
+{
+   
+}

Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/stereotype/session/BorderCollieLocal.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/stereotype/session/BorderCollieLocal.java	                        (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/stereotype/session/BorderCollieLocal.java	2009-03-23 05:25:18 UTC (rev 2137)
@@ -0,0 +1,6 @@
+package org.jboss.jsr299.tck.tests.definition.stereotype.session;
+
+public interface BorderCollieLocal
+{
+
+}

Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/stereotype/session/LongHairedDog.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/stereotype/session/LongHairedDog.java	                        (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/stereotype/session/LongHairedDog.java	2009-03-23 05:25:18 UTC (rev 2137)
@@ -0,0 +1,7 @@
+package org.jboss.jsr299.tck.tests.definition.stereotype.session;
+
+ at AnimalStereotype
+class LongHairedDog implements Animal
+{
+   
+}
\ No newline at end of file

Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/stereotype/session/SessionStereotypeDefinitionTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/stereotype/session/SessionStereotypeDefinitionTest.java	                        (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/stereotype/session/SessionStereotypeDefinitionTest.java	2009-03-23 05:25:18 UTC (rev 2137)
@@ -0,0 +1,28 @@
+package org.jboss.jsr299.tck.tests.definition.stereotype.session;
+
+import javax.context.RequestScoped;
+
+import org.hibernate.tck.annotations.SpecAssertion;
+import org.jboss.jsr299.tck.AbstractJSR299Test;
+import org.jboss.testharness.impl.packaging.Artifact;
+import org.jboss.testharness.impl.packaging.IntegrationTest;
+import org.jboss.testharness.impl.packaging.Packaging;
+import org.jboss.testharness.impl.packaging.PackagingType;
+import org.testng.annotations.Test;
+
+/**
+ * 
+ * Spec version: PRD2
+ */
+ at IntegrationTest
+ at Artifact
+ at Packaging(PackagingType.EAR)
+public class SessionStereotypeDefinitionTest extends AbstractJSR299Test
+{
+   @Test
+   @SpecAssertion(section = "4.1", id = "ae")
+   public void testStereotypeDeclaredInheritedIsInherited() throws Exception
+   {
+      assert getCurrentManager().resolveByType(BorderCollieLocal.class).iterator().next().getScopeType().equals(RequestScoped.class);
+   }
+}




More information about the weld-commits mailing list