[webbeans-commits] Webbeans SVN: r2372 - in tck/trunk/impl/src/main: java/org/jboss/jsr299/tck/tests/lookup/dynamic and 1 other directories.

webbeans-commits at lists.jboss.org webbeans-commits at lists.jboss.org
Thu Apr 9 17:18:03 EDT 2009


Author: pete.muir at jboss.org
Date: 2009-04-09 17:18:03 -0400 (Thu, 09 Apr 2009)
New Revision: 2372

Removed:
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/clientProxy/unknown/
Modified:
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/dynamic/DynamicLookupTest.java
   tck/trunk/impl/src/main/resources/tck-audit.xml
Log:
cleanup a few tests

Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/dynamic/DynamicLookupTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/dynamic/DynamicLookupTest.java	2009-04-09 20:30:08 UTC (rev 2371)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/dynamic/DynamicLookupTest.java	2009-04-09 21:18:03 UTC (rev 2372)
@@ -2,13 +2,8 @@
 
 import static org.jboss.jsr299.tck.tests.lookup.dynamic.PayBy.PaymentMethod.CHEQUE;
 
-import java.util.Set;
-
-import javax.context.Dependent;
 import javax.inject.DuplicateBindingTypeException;
 import javax.inject.Instance;
-import javax.inject.Standard;
-import javax.inject.TypeLiteral;
 import javax.inject.manager.Bean;
 
 import org.hibernate.tck.annotations.SpecAssertion;
@@ -76,25 +71,4 @@
       injectionPoint.getPaymentProcessor().get(new NonBinding() );      
    }
    
-   @Test(groups="broken")
-   // TODO Can we test this?
-   @SpecAssertions({
-      @SpecAssertion(section = "5.8", id = "k"),
-      @SpecAssertion(section = "5.8", id = "l"),
-      @SpecAssertion(section = "5.8", id = "m"),
-      @SpecAssertion(section = "5.8", id = "n"),
-      @SpecAssertion(section = "5.8", id = "o")
-   })
-   public void testImplicitBeanExists()
-   {
-      Set<Bean<Instance<PaymentProcessor>>> beans = getCurrentManager().resolveByType(new TypeLiteral<Instance<PaymentProcessor>>() {}, new PayByBinding() { public PaymentMethod value() { return CHEQUE; }});
-      assert beans.size() == 1;
-      Bean<Instance<PaymentProcessor>> instanceBean = beans.iterator().next();
-      assert instanceBean != null;
-      assert instanceBean.getDeploymentType().equals(Standard.class);
-      assert instanceBean.getScopeType().equals(Dependent.class);
-      assert instanceBean.getName() == null;
-   }
-   
-   
 }

Modified: tck/trunk/impl/src/main/resources/tck-audit.xml
===================================================================
--- tck/trunk/impl/src/main/resources/tck-audit.xml	2009-04-09 20:30:08 UTC (rev 2371)
+++ tck/trunk/impl/src/main/resources/tck-audit.xml	2009-04-09 21:18:03 UTC (rev 2372)
@@ -3097,24 +3097,29 @@
       <text>If the type parameter contains a wildcard a |DefinitionException| is thrown by the container at deployment time</text>
     </assertion>
     
-    <assertion id="k">
-      <text>Whenever the |@Obtains| annotation appears at an injection point, an implicit bean exists with exactly the bean type and bindings that appear at the injection point</text>
+    <assertion id="k" testable="false">
+       <text>Whenever the |@Obtains| annotation appears at an injection point, an implicit bean exists with exactly the bean type and bindings that appear at the injection point</text>
+       <note>As the bean is implicit, it cannot be resolved</note>
     </assertion>
     
-    <assertion id="l">
+    <assertion id="l" testable="false">
       <text>Whenever the |@Obtains| annotation appears at an injection point, an implicit bean exists with deployment type |@Standard|</text>
+      <note>As the bean is implicit, it cannot be resolved</note>
     </assertion>
     
-    <assertion id="m">
+    <assertion id="m" testable="false">
       <text>Whenever the |@Obtains| annotation appears at an injection point, an implicit bean exists with |@Dependent| scope</text>
+      <note>As the bean is implicit, it cannot be resolved</note>
     </assertion>
     
-    <assertion id="n">
+    <assertion id="n" testable="false">
       <text>Whenever the |@Obtains| annotation appears at an injection point, an implicit bean exists with no bean name</text>
+      <note>As the bean is implicit, it cannot be resolved</note>
     </assertion>
     
-    <assertion id="o">
+    <assertion id="o" testable="false">
       <text>Whenever the |@Obtains| annotation appears at an injection point, an implicit bean exists with an implementation provided automatically by the container</text>
+      <note>As the bean is implicit, it cannot be resolved</note>
     </assertion>
     
     <assertion id="p">




More information about the weld-commits mailing list