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

webbeans-commits at lists.jboss.org webbeans-commits at lists.jboss.org
Wed Jul 29 07:50:42 EDT 2009


Author: pete.muir at jboss.org
Date: 2009-07-29 07:50:41 -0400 (Wed, 29 Jul 2009)
New Revision: 3347

Modified:
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/definition/DecoratorDefinitionTest.java
Log:
Fix my poor understanding of what "a decorator is a managed bean" means ;-)

Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/definition/DecoratorDefinitionTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/definition/DecoratorDefinitionTest.java	2009-07-29 08:18:24 UTC (rev 3346)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/definition/DecoratorDefinitionTest.java	2009-07-29 11:50:41 UTC (rev 3347)
@@ -18,17 +18,15 @@
 
 import java.io.Serializable;
 import java.util.List;
-import java.util.Set;
 
 import javax.decorator.Decorates;
 import javax.enterprise.inject.Current;
-import javax.enterprise.inject.spi.Bean;
 import javax.enterprise.inject.spi.Decorator;
 
+import org.jboss.jsr299.tck.AbstractJSR299Test;
 import org.jboss.test.audit.annotations.SpecAssertion;
 import org.jboss.test.audit.annotations.SpecAssertions;
 import org.jboss.test.audit.annotations.SpecVersion;
-import org.jboss.jsr299.tck.AbstractJSR299Test;
 import org.jboss.testharness.impl.packaging.Artifact;
 import org.jboss.testharness.impl.packaging.jsr299.BeansXml;
 import org.testng.annotations.Test;
@@ -44,7 +42,6 @@
    @Test
    @SpecAssertions
    ({
-      @SpecAssertion(section="8.1", id="a"),
       @SpecAssertion(section="8.1", id="d"),
       @SpecAssertion(section="8.1.1", id="a"),
       @SpecAssertion(section="8.1.3", id="c"),
@@ -56,9 +53,6 @@
    {
       List<Decorator<?>> decorators = getCurrentManager().resolveDecorators(MockLogger.TYPES);
       assert decorators.size() == 1;
-      Set<Bean<?>> beans = getCurrentManager().getBeans(TimestampLogger.class);
-      assert beans.size() == 1;
-      assert decorators.get(0).equals(beans.iterator().next());
       boolean implementsInterface = false;
       for (Class<?> interfaze : decorators.get(0).getClass().getInterfaces())
       {




More information about the weld-commits mailing list