[webbeans-commits] Webbeans SVN: r1598 - tck/trunk/impl/src/main/resources.

webbeans-commits at lists.jboss.org webbeans-commits at lists.jboss.org
Thu Feb 19 09:47:56 EST 2009


Author: pete.muir at jboss.org
Date: 2009-02-19 09:47:55 -0500 (Thu, 19 Feb 2009)
New Revision: 1598

Modified:
   tck/trunk/impl/src/main/resources/tck-audit.xml
Log:
Map more assertions

Modified: tck/trunk/impl/src/main/resources/tck-audit.xml
===================================================================
--- tck/trunk/impl/src/main/resources/tck-audit.xml	2009-02-19 14:43:45 UTC (rev 1597)
+++ tck/trunk/impl/src/main/resources/tck-audit.xml	2009-02-19 14:47:55 UTC (rev 1598)
@@ -385,8 +385,7 @@
   <section id="2.5.5" title="Default deployment type">
     
     <assertion id="a">
-      <text>The default deployment type for a bean which does not explicitly declare a deployment type depends upon its declared stereotypes - if a bean does not declare any stereotype with a declared default deployment type, then the default deployment type is
- at Production</text>
+      <text>The default deployment type for a bean which does not explicitly declare a deployment type depends upon its declared stereotypes - if a bean does not declare any stereotype with a declared default deployment type, then the default deployment type is at Production</text>
     </assertion>
     
     <assertion id="b">
@@ -404,7 +403,23 @@
     <assertion id="a">
       <text>Beans declared with a deployment type that is not enabled are not available to the resolution algorithms defined in Chapter 5, Lookup, dependency injection and EL resolution.</text>
     </assertion>
+    
+    <assertion id="b">
+      <text>If a &lt;Deploy&gt; element is specified, only the explicitly declared deployment types are enabled.</text>
+    </assertion>
+    
+    <assertion id="c">
+      <text>The @Standard deployment type must be declared. If the @Standard deployment type is not declared, a DeploymentException is thrown by the container at deployment time.</text>
+    </assertion>
+    
+    <assertion id="d">
+      <text>If no &lt;Deploy&gt; element is specified in any beans.xml file, only the @Standard and @Production deployment types are enabled.</text>
+    </assertion>
   
+    <assertion id="e">
+      <text>If the &lt;Deploy&gt; element is specified in more than one beans.xml document, a DeploymentException is thrown by the container at deployment time. </text>
+    </assertion>  
+  
   </section>
   
   <section id="2.6" title="Bean names">
@@ -601,10 +616,14 @@
       <text>Stereotype annotations may be applied to a producer field</text>
     </assertion>
     
-    <assertion id="d">
-      <text>The default deployment type and default scope declared by the stereotype may be overridden by the bean</text>
+    <assertion id="da">
+      <text>The default deployment type declared by the stereotype may be overridden by the bean</text>
     </assertion>
     
+    <assertion id="db">
+      <text>The default scope declared by the stereotype may be overridden by the bean</text>
+    </assertion>
+    
     <assertion id="e">
       <text>Multiple stereotypes may be applied to the same bean</text>
     </assertion>
@@ -991,10 +1010,14 @@
       <text>If the application directly calls an EJB remove method of an instance of a session bean that is a stateful session bean and declares any scope other than @Dependent, an UnsupportedOperationException is thrown</text>
     </assertion>
     
-    <assertion id="d">
-      <text>If the application directly calls an EJB remove method of an instance of a session bean that is a stateful session bean and has scope @Dependent then no parameters are passed to the method by the container. Furthermore, the container ignores the instance instead of destroying it when Bean.destroy() is called, as defined in Section 6.5, "Lifecycle of stateful session beans"</text>
+    <assertion id="da">
+      <text>If the application directly calls an EJB remove method of an instance of a session bean that is a stateful session bean and has scope @Dependent then no parameters are passed to the method by the container.</text>
     </assertion>
     
+    <assertion id="db">
+      <text>If the application directly calls an EJB remove method of an instance of a session bean that is a stateful session bean and has scope @Dependent then the container ignores the instance instead of destroying it when Bean.destroy() is called, as defined in Section 6.5, "Lifecycle of stateful session beans"</text>
+    </assertion>
+    
   </section>
   
   <section id="3.3.2" title="Which EJBs are beans?">
@@ -2336,20 +2359,90 @@
       <text>The javax.inject.manager.InjectionPoint.getBean() method returns the Bean object representing the bean that defines the injection point</text>
     </assertion>
     
-    <assertion id="b">
-      <text>The javax.inject.manager.InjectionPoint.getType() and getBindings() methods return the declared type and bindings of the injection point. If the injection point is declared in XML, the type and bindings are determined according to Section 9.10, "Specifying bean types and bindings"</text>
+    <assertion id="ba">
+      <text>The javax.inject.manager.InjectionPoint.getType() method returns the declared type of the injection point.</text>
     </assertion>
     
-    <assertion id="c">
-      <text>The javax.inject.manager.InjectionPoint.getMember() method returns the Field object in the case of field injection, the Method object in the case of method parameter injection or the Constructor object in the case of constructor parameter injection</text>
+    <assertion id="bb">
+      <text>An injection point declared in XML has it's type determined according to Section 9.10, "Specifying bean types and bindings"</text>
     </assertion>
     
-    <assertion id="d">
-      <text>The javax.inject.manager.InjectionPoint.getAnnotation() and getAnnotations() methods return annotations of the field in the case of field injection, or annotations of the parameter in the case of method parameter or constructor parameter injection. getAnnotation() returns a null value if no annotation of the given type exists at the injection point</text>
+    <assertion id="bc">
+      <text>The javax.inject.manager.InjectionPoint.getBindings() method returns the declared bindings of the injection point.</text>
     </assertion>
+    
+    <assertion id="bd">
+      <text>An injection point declared in XML has it's bindings determined according to Section 9.10, "Specifying bean types and bindings"</text>
+    </assertion>
+    
+    <assertion id="ca">
+      <text>The javax.inject.manager.InjectionPoint.getMember() method returns the Field object in the case of field injection</text>
+    </assertion>
+    
+    <assertion id="cb">
+      <text>The javax.inject.manager.InjectionPoint.getMember() method returns the Method object in the case of method parameter injection</text>
+    </assertion>
+    
+    <assertion id="cc">
+      <text>The javax.inject.manager.InjectionPoint.getMember() method returns the Constructor object in the case of constructor parameter injection</text>
+    </assertion>
+    
+    <assertion id="da">
+      <text>The javax.inject.manager.InjectionPoint.getAnnotation() method returns annotations of the field in the case of field injection</text>
+    </assertion>
+    
+    <assertion id="db">
+      <text>The javax.inject.manager.InjectionPoint.getAnnotation() method returns annotations of the parameter in the case of method parameter</text>
+    </assertion>
+    
+    <assertion id="dc">
+      <text>The javax.inject.manager.InjectionPoint.getAnnotation() method returns annotations annotations of the parameter in the case of constructor parameter injection.</text>
+    </assertion>
+    
+    <assertion id="dd">
+      <text>The javax.inject.manager.InjectionPoint.getAnnotations() method returns annotations of the field in the case of field injection</text>
+    </assertion>
+    
+    <assertion id="de">
+      <text>The javax.inject.manager.InjectionPoint.getAnnotations() method returns annotations of the parameter in the case of method parameter</text>
+    </assertion>
+    
+    <assertion id="df">
+      <text>The javax.inject.manager.InjectionPoint.getAnnotations() method returns annotations annotations of the parameter in the case of constructor parameter injection.</text>
+    </assertion>
+    
+    <assertion id="dg">
+      <text>getAnnotation() returns a null value if no annotation of the given type exists at the field injection point</text>
+    </assertion>
+    
+    <assertion id="dh">
+      <text>getAnnotation() returns a null value if no annotation of the given type exists at the method parameter injection point</text>
+    </assertion>
+    
+    <assertion id="di">
+      <text>getAnnotation() returns a null value if no annotation of the given type exists at the constructor injection point</text>
+    </assertion>
+    
   </section>
   
   <section id="5.6.1" title="Injecting InjectionPoint">
+  
+    <assertion id="za">
+      <text>The container must provide a bean with deployment type @Standard.</text>
+    </assertion>
+    
+    <assertion id="zb">
+      <text>The container must provide a bean with scope @Dependent.</text>
+    </assertion>
+    
+    <assertion id="zc">
+      <text>The container must provide a bean with bean type InjectionPoint.</text>
+    </assertion>
+    
+    <assertion id="zd">
+      <text>The container must provide a bean with binding @Current.</text>
+    </assertion>
+  
     <assertion id="a">
       <text>Whenever a @Dependent scoped object is instantiated by the container for injection into a second bean, any injection point of type InjectionPoint and binding @Current receives an instance of InjectionPoint that represents the injection point of the second bean</text>
     </assertion>




More information about the weld-commits mailing list