[webbeans-commits] Webbeans SVN: r3151 - tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/stereotype.

webbeans-commits at lists.jboss.org webbeans-commits at lists.jboss.org
Thu Jul 23 09:07:34 EDT 2009


Author: dallen6
Date: 2009-07-23 09:07:33 -0400 (Thu, 23 Jul 2009)
New Revision: 3151

Modified:
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/stereotype/AnotherStereotype.java
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/stereotype/StereotypeDefinitionTest.java
Log:
Fixed broken stereotype definition test.

Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/stereotype/AnotherStereotype.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/stereotype/AnotherStereotype.java	2009-07-23 12:48:02 UTC (rev 3150)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/stereotype/AnotherStereotype.java	2009-07-23 13:07:33 UTC (rev 3151)
@@ -8,11 +8,13 @@
 import java.lang.annotation.Retention;
 import java.lang.annotation.Target;
 
+import javax.enterprise.context.RequestScoped;
 import javax.enterprise.inject.stereotype.Stereotype;
 
 @Stereotype
 @Target( { TYPE, METHOD, FIELD })
 @Retention(RUNTIME)
+ at RequestScoped
 @interface AnotherStereotype
 {
 

Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/stereotype/StereotypeDefinitionTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/stereotype/StereotypeDefinitionTest.java	2009-07-23 12:48:02 UTC (rev 3150)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/stereotype/StereotypeDefinitionTest.java	2009-07-23 13:07:33 UTC (rev 3151)
@@ -94,10 +94,7 @@
    public void testStereotypeNotDeclaredInheritedIsNotInherited()
    {
       assert getBeans(ShetlandPony.class).size() == 1;
-
-      // rewrite this to not test deployment type
-      //assert getBeans(ShetlandPony.class).iterator().next().getDeploymentType().equals(Production.class);
-      assert false;
+      assert getBeans(ShetlandPony.class).iterator().next().getScopeType().equals(Dependent.class);
    }
    
    @Test




More information about the weld-commits mailing list