[webbeans-commits] Webbeans SVN: r1603 - in tck/trunk/impl/src/main: java/org/jboss/jsr299/tck/unit/context and 9 other directories.

webbeans-commits at lists.jboss.org webbeans-commits at lists.jboss.org
Thu Feb 19 14:28:32 EST 2009


Author: pete.muir at jboss.org
Date: 2009-02-19 14:28:32 -0500 (Thu, 19 Feb 2009)
New Revision: 1603

Removed:
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/implementation/deployment/
Modified:
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/integration/context/passivating/PassivatingContextTest.java
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/ContextTest.java
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/NormalContextTest.java
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/definition/scope/ScopeDefinitionTest.java
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/implementation/enterprise/EnterpriseBeanDeclarationTest.java
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/implementation/enterprise/NewEnterpriseBeanTest.java
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/implementation/initializer/InitializerMethodTest.java
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/implementation/producer/field/ProducerFieldDefinitionTest.java
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/implementation/producer/method/ProducerMethodDefinitionTest.java
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/inheritance/specialization/producer/method/ProducerMethodSpecializationTest.java
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/lookup/injection/InjectionTest.java
   tck/trunk/impl/src/main/resources/tck-audit.xml
Log:
Review assertions

Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/integration/context/passivating/PassivatingContextTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/integration/context/passivating/PassivatingContextTest.java	2009-02-19 18:42:22 UTC (rev 1602)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/integration/context/passivating/PassivatingContextTest.java	2009-02-19 19:28:32 UTC (rev 1603)
@@ -44,7 +44,7 @@
     */
    // TODO requires an EJB instance
    @Test(groups = { "contexts", "passivation", "stub", "integration" })
-   @SpecAssertion(section = "review", id = "review")
+   @SpecAssertion(section = "8.4", id = "g")
    public void testStatefulEJBIsSerializedWhenPassivatedByEJBContainer() throws IOException, ClassNotFoundException
    {
       assert false;

Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/ContextTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/ContextTest.java	2009-02-19 18:42:22 UTC (rev 1602)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/ContextTest.java	2009-02-19 19:28:32 UTC (rev 1603)
@@ -54,7 +54,7 @@
    }
 
    @Test(expectedExceptions = { ContextNotActiveException.class }, groups = { "manager" })
-   @SpecAssertion(section = "review", id = "review")
+   @SpecAssertion(section = "8.6", id = "c")
    public void testGetContextWithNoActiveContextsFails()
    {
       getCurrentConfiguration().getContexts().setInactive(getCurrentConfiguration().getContexts().getRequestContext());
@@ -62,7 +62,7 @@
    }
 
    @Test(expectedExceptions = { IllegalArgumentException.class }, groups = { "manager" })
-   @SpecAssertion(section = "review", id = "review")
+   @SpecAssertion(section = "8.6", id = "c")
    public void testGetContextWithTooManyActiveContextsFails()
    {
       Context firstContext = new DummyContext()
@@ -77,14 +77,14 @@
    }
 
    @Test(expectedExceptions = { ContextNotActiveException.class }, groups = { "manager" })
-   @SpecAssertion(section = "review", id = "review")
+   @SpecAssertion(section = "8.6", id = "c")
    public void testGetContextWithNoRegisteredContextsFails()
    {
       getCurrentManager().getContext(Unregistered.class);
    }
 
    @Test(groups = { "manager" })
-   @SpecAssertion(section = "review", id = "review")
+   @SpecAssertion(section = "8.6", id = "b")
    public void testGetContextReturnsActiveContext()
    {
       getCurrentManager().getContext(RequestScoped.class);

Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/NormalContextTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/NormalContextTest.java	2009-02-19 18:42:22 UTC (rev 1602)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/NormalContextTest.java	2009-02-19 19:28:32 UTC (rev 1603)
@@ -168,52 +168,10 @@
     * thread
     */
    @Test(groups = { "contexts", "stub", "underInvestigation" })
-   @SpecAssertion(section = "review", id = "review")
+   @SpecAssertion(section = "8.2", id = "a")
    public void testOnlyOneMappedInstancePerContextualTypePerThread()
    {
       assert false;
    }
-
-   /*
-    * @Test(groups = "contexts")
-    * 
-    * @SpecAssertion(section = "9.3") public void
-    * testGetWithCreateFalseReturnsNull() { Bean<Tuna> tunaBean =
-    * BeanFactory.createSimpleBean(Tuna.class, manager); assert
-    * context.get(tunaBean, false) == null; }
-    * 
-    * @Test(groups = "contexts")
-    * 
-    * @SpecAssertion(section = "8.1") public void
-    * testGetWithCreateTrueReturnsBean() { Bean<Tuna> tunaBean =
-    * BeanFactory.createSimpleBean(Tuna.class, manager); assert
-    * context.get(tunaBean, true) != null; }
-    * 
-    * @Test(groups = "contexts", expectedExceptions =
-    * ContextNotActiveException.class)
-    * 
-    * @SpecAssertion(section = "8.1") public void
-    * testInactiveContextThrowsContextNotActiveException() { ((AbstractContext)
-    * context).setActive(false); context.get(null, false); assert true; }
-    * 
-    * @Test(groups = "contexts")
-    * 
-    * @SpecAssertion(section = "8.1") public void
-    * testReturnsCorrectExistingBean() { Bean<Tuna> tunaBean =
-    * BeanFactory.createSimpleBean(Tuna.class, manager); Tuna firstTuna =
-    * context.get(tunaBean, true); Tuna secondTuna = context.get(tunaBean,
-    * false); assert firstTuna == secondTuna; }
-    * 
-    * @Test(groups = { "contexts", "producerMethod" })
-    * 
-    * @SpecAssertion(section = "8.1") public void
-    * testProducerMethodReturningNullOK() throws SecurityException,
-    * NoSuchMethodException { SimpleBean<SpiderProducer> producer =
-    * createSimpleBean(SpiderProducer.class, manager);
-    * manager.addBean(producer); Method nullProducer =
-    * SpiderProducer.class.getMethod("produceShelob");
-    * ProducerMethodBean<Tarantula> shelobBean =
-    * createProducerMethodBean(Tarantula.class, nullProducer, producer,
-    * manager); assert shelobBean.create() == null; }
-    */
+    
 }

Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/definition/scope/ScopeDefinitionTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/definition/scope/ScopeDefinitionTest.java	2009-02-19 18:42:22 UTC (rev 1602)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/definition/scope/ScopeDefinitionTest.java	2009-02-19 19:28:32 UTC (rev 1603)
@@ -91,30 +91,6 @@
       assert false;
    }
    
-   @Test(groups={"stub", "webbeansxml"}) 
-   @SpecAssertion(section="review", id = "review")
-   public void testScopeMissingInXml()
-   {
-      //Map<Class<? extends Annotation>, Annotation> annotations = new HashMap<Class<? extends Annotation>, Annotation>();
-      //AnnotatedClass<SeaBass> annotatedItem = new SimpleAnnotatedClass<SeaBass>(SeaBass.class, annotations);
-      
-      //SimpleBean<SeaBass> trout =createSimpleBean(SeaBass.class, annotatedItem, manager);
-      //assert trout.getScopeType().equals(RequestScoped.class);
-      assert false;
-   }
-
-   @Test(groups={"stub", "webbeansxml"}) 
-   @SpecAssertion(section="review", id = "review")
-   public void testScopeDeclaredInXmlOverridesJava()
-   {
-      //Map<Class<? extends Annotation>, Annotation> annotations = new HashMap<Class<? extends Annotation>, Annotation>();
-      //annotations.put(ConversationScoped.class, new ConversationScopedAnnotationLiteral());
-      //AnnotatedClass<SeaBass> annotatedItem = new SimpleAnnotatedClass<SeaBass>(SeaBass.class, annotations);
-      //SimpleBean<SeaBass> trout = createSimpleBean(SeaBass.class, annotatedItem, manager);
-      //assert trout.getScopeType().equals(ConversationScoped.class);
-      assert false;
-   }
-   
    @Test @SpecAssertion(section="2.4.5", id = "a")
    public void testDefaultScope()
    {

Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/implementation/enterprise/EnterpriseBeanDeclarationTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/implementation/enterprise/EnterpriseBeanDeclarationTest.java	2009-02-19 18:42:22 UTC (rev 1602)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/implementation/enterprise/EnterpriseBeanDeclarationTest.java	2009-02-19 19:28:32 UTC (rev 1603)
@@ -99,21 +99,9 @@
       deployBeans(Pekingese_Broken.class);
    }
 
-   /**
-    * Only one Web Bean per implementation class may be defined using
-    * annotations.
-    */
-   @Test(expectedExceptions = DefinitionException.class, groups = { "enterpriseBeans", "stub" })
-   @SpecAssertion(section = "review", id = "review")
-   public void testMultipleAnnotationDefinedEnterpriseBeansWithSameImplementationClassFails()
-   {
-      // TODO: testable?
-      assert false;
-   }
-
    @Test(groups = { "webbeansxml", "enterpriseBeans", "stub" })
    @SpecAssertion(section = "3.3", id = "e")
-   public void testMultipleXMLDefinedEnterpriseBeansWithSameImplementationClassOK()
+   public void testMultipleXMLDefinedEnterpriseBeansWithSameImplementationClassNotOK()
    {
       assert false;
    }
@@ -178,31 +166,6 @@
       assert false;
    }
 
-   /**
-    * Enterprise Web Beans may be declared in web-beans.xml using the bean class
-    * name (for EJBs defined using a component- defining annotation) or bean
-    * class and EJB name (for EJBs defined in ejb-jar.xml). The ejbName
-    * attribute declares the EJB name of an EJB defined in ejb-jar.xml
-    */
-   @Test(groups = { "enterpriseBeans", "webbeansxml", "ejbjarxml", "stub" })
-   @SpecAssertion(section = "review", id = "review")
-   public void testXMLFilesEJBNameUsage()
-   {
-      assert false;
-   }
-
-   /**
-    * Enterprise Web Beans may not be message-driven beans. If an enterprise Web
-    * Bean declared in XML is a message-driven bean, a DefinitionException is
-    * thrown by the Web Bean manager at initialization time.
-    */
-   @Test(expectedExceptions = DefinitionException.class, groups = { "enterpriseBeans" })
-   @SpecAssertion(section = "review", id = "review")
-   public void testMessageDrivenBeansNotOK()
-   {
-      deployBeans(Leopard.class);
-   }
-
    @Test(groups = "enterpriseBeans")
    @SpecAssertion(section = "3.3.8", id = "a")
    public void testDefaultName()

Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/implementation/enterprise/NewEnterpriseBeanTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/implementation/enterprise/NewEnterpriseBeanTest.java	2009-02-19 18:42:22 UTC (rev 1602)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/implementation/enterprise/NewEnterpriseBeanTest.java	2009-02-19 19:28:32 UTC (rev 1603)
@@ -71,55 +71,6 @@
    {
       assert false;
    }
-
-   /**
-    * If the parameter type satisfies the definition of a simple Web Bean
-    * implementation class, Section 3.2.1, �Which Java classes are simple Web
-    * Beans?�, then the Web Bean is a simple Web Bean. If the parameter type
-    * satisfies the definition of an enterprise Web Bean implementation class,
-    * Section 3.3.2, �Which EJBs are enterprise Web Beans?�, then the Web Bean
-    * is an enterprise Web Bean.
-    */
-   @Test(groups = { "new", "stub", "ejb3" })
-   @SpecAssertion(section = "review", id = "review")
-   public void testNewBeanIsEnterpriseWebBeanIfParameterTypeIsEnterpriseWebBean()
-   {
-      assert false;
-   }
-
-   /**
-    * Furthermore, this Web Bean: � has the same Web Bean constructor,
-    * initializer methods and injected fields as a Web Bean defined using
-    * annotations� that is, it has any Web Bean constructor, initializer method
-    * or injected field declared by annotations that appear on the
-    * implementation class, � has no observer methods, producer methods or
-    * fields or disposal methods, � has the same interceptors as a Web Bean
-    * defined using annotations�that is, it has all the interceptor binding
-    * types declared by annotations that appear on the implementation class, and
-    * � has no decorators.
-    */
-//   @Test(groups = { "new", "stub" })
-//   public void testNewBeanHasSameInitializerMethodsAsWrappedBean()
-//   {
-//      assert false;
-//   }
-
-   /**
-    * Furthermore, this Web Bean: � has the same Web Bean constructor,
-    * initializer methods and injected fields as a Web Bean defined using
-    * annotations� that is, it has any Web Bean constructor, initializer method
-    * or injected field declared by annotations that appear on the
-    * implementation class, � has no observer methods, producer methods or
-    * fields or disposal methods, � has the same interceptors as a Web Bean
-    * defined using annotations�that is, it has all the interceptor binding
-    * types declared by annotations that appear on the implementation class, and
-    * � has no decorators.
-    */
-//   @Test(groups = { "new", "stub" })
-//   public void testNewBeanHasSameInjectedFieldsAsWrappedBean()
-//   {
-//      assert false;
-//   }
    
    @Test(groups = {"new" })
    @SpecAssertion(section = "3.3.6", id = "i")
@@ -163,89 +114,6 @@
    }
 
    /**
-    * Furthermore, this Web Bean: � has the same Web Bean constructor,
-    * initializer methods and injected fields as a Web Bean defined using
-    * annotations� that is, it has any Web Bean constructor, initializer method
-    * or injected field declared by annotations that appear on the
-    * implementation class, � has no observer methods, producer methods or
-    * fields or disposal methods, � has the same interceptors as a Web Bean
-    * defined using annotations�that is, it has all the interceptor binding
-    * types declared by annotations that appear on the implementation class, and
-    * � has no decorators.
-    */
-   @Test(groups = { "new", "broken" })
-   @SpecAssertion(section = "review", id = "review")
-   public void testNewBeanHasNoDecorators()
-   {
-      Annotation[] bindingTypes = newEnterpriseBean.getBindings().toArray(new Annotation[0]);
-      assert getCurrentManager().resolveDecorators(newEnterpriseBean.getTypes(), bindingTypes).isEmpty();
-   }
-
-   /**
-    * The @New annotation or <New> element may be applied to any field of a Web
-    * Bean implementation class or to any parameter of a producer method,
-    * initializer method, disposal method or Web Bean constructor where the type
-    * of the field or parameter is a concrete Java type which satisfies the
-    * requirements of a simple Web Bean implementation class or enterprise Web
-    * Bean implementation class.
-    */
-   @Test(groups = { "new" })
-   @SpecAssertion(section = "review", id = "review")
-   public void testNewAnnotationMayBeAppliedToField()
-   {
-      deployBeans(AnnotatedField.class, WrappedEnterpriseBean.class);
-      assert getCurrentManager().resolveByType(WrappedEnterpriseBean.class, new NewLiteral()).size() == 1;
-   }
-
-   /**
-    * The @New annotation or <New> element may be applied to any field of a Web
-    * Bean implementation class or to any parameter of a producer method,
-    * initializer method, disposal method or Web Bean constructor where the type
-    * of the field or parameter is a concrete Java type which satisfies the
-    * requirements of a simple Web Bean implementation class or enterprise Web
-    * Bean implementation class.
-    */
-   @Test(groups = { "new" })
-   @SpecAssertion(section = "review", id = "review")
-   public void testNewAnnotationMayBeAppliedToProducerMethodParameter()
-   {
-      deployBeans(AnnotatedProducerParameter.class, WrappedEnterpriseBean.class);
-      assert getCurrentManager().resolveByType(WrappedEnterpriseBean.class, new NewLiteral()).size() == 1;
-   }
-
-   /**
-    * The @New annotation or <New> element may be applied to any field of a Web
-    * Bean implementation class or to any parameter of a producer method,
-    * initializer method, disposal method or Web Bean constructor where the type
-    * of the field or parameter is a concrete Java type which satisfies the
-    * requirements of a simple Web Bean implementation class or enterprise Web
-    * Bean implementation class.
-    */
-   @Test(groups = { "new" })
-   @SpecAssertion(section = "review", id = "review")
-   public void testNewAnnotationMayBeAppliedToInitializerMethodParameter()
-   {
-      deployBeans(AnnotatedInitializerParameter.class, WrappedEnterpriseBean.class);
-      assert getCurrentManager().resolveByType(WrappedEnterpriseBean.class, new NewLiteral()).size() == 1;
-   }
-
-   /**
-    * The @New annotation or <New> element may be applied to any field of a Web
-    * Bean implementation class or to any parameter of a producer method,
-    * initializer method, disposal method or Web Bean constructor where the type
-    * of the field or parameter is a concrete Java type which satisfies the
-    * requirements of a simple Web Bean implementation class or enterprise Web
-    * Bean implementation class.
-    */
-   @Test(groups = { "new" })
-   @SpecAssertion(section = "review", id = "review")
-   public void testNewAnnotationMayBeAppliedToConstructorMethodParameter()
-   {
-      deployBeans(AnnotatedConstructorParameter.class, WrappedEnterpriseBean.class);
-      assert getCurrentManager().resolveByType(WrappedEnterpriseBean.class, new NewLiteral()).size() == 1;
-   }
-
-   /**
     * If the @New binding type appears in conjunction with some other binding
     * type, or is specified for a field or parameter of a type which does not
     * satisfy the definition of a simple Web Bean implementation class or
@@ -285,7 +153,7 @@
       assert false;
    }
    
-   @Test @SpecAssertion(section="review", id = "review")
+   @Test @SpecAssertion(section="3.3.1", id = "a")
    public void testForEachEnterpriseBeanANewBeanExists()
    {
       deployBeans(Order.class, Lion.class);

Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/implementation/initializer/InitializerMethodTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/implementation/initializer/InitializerMethodTest.java	2009-02-19 18:42:22 UTC (rev 1602)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/implementation/initializer/InitializerMethodTest.java	2009-02-19 19:28:32 UTC (rev 1603)
@@ -127,7 +127,7 @@
    }
 
    @Test(groups = { "stub", "initializerMethod", "webbeansxml" })
-   @SpecAssertion(section = "review", id = "review")
+   @SpecAssertion(section = "3.9", id = "g")
    public void testBeanHasAllInitializerMethodsDeclaredInJavaAndXml()
    {
       assert false;

Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/implementation/producer/field/ProducerFieldDefinitionTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/implementation/producer/field/ProducerFieldDefinitionTest.java	2009-02-19 18:42:22 UTC (rev 1602)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/implementation/producer/field/ProducerFieldDefinitionTest.java	2009-02-19 19:28:32 UTC (rev 1603)
@@ -62,7 +62,7 @@
     */
 
    @Test(groups = { "broken", "producerField", "enterpriseBeans" }, expectedExceptions = DefinitionException.class)
-   @SpecAssertion(section = "review", id = "review")
+   @SpecAssertion(section = "outdated", id = "outdated")
    public void testProducerFieldIsNotBusinessField() throws Exception
    {
       deployBeans(VibratingSpiderImpl_Broken.class);
@@ -99,10 +99,8 @@
       deployBeans(OtherSpiderProducer.class);
    }
 
-   // Review 3.5
    @Test(groups = "producerField")
    @SpecAssertions({
-     @SpecAssertion(section = "review", id = "review"),
      @SpecAssertion(section = "2.3.1", id = "a")
    })
    public void testDefaultBindingType()
@@ -239,8 +237,7 @@
    @Test(groups = "producerField")
    @SpecAssertions({
      @SpecAssertion(section = "2.7.2", id = "c"),
-     @SpecAssertion(section = "3.5.2", id = "e"),
-     @SpecAssertion(section = "review", id = "review")
+     @SpecAssertion(section = "3.5.2", id = "e")
    })
    public void testStereotype()
    {

Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/implementation/producer/method/ProducerMethodDefinitionTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/implementation/producer/method/ProducerMethodDefinitionTest.java	2009-02-19 18:42:22 UTC (rev 1602)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/implementation/producer/method/ProducerMethodDefinitionTest.java	2009-02-19 19:28:32 UTC (rev 1603)
@@ -43,7 +43,7 @@
    }
 
    @Test(groups = { "stub", "producerMethod", "enterpriseBeans" }, expectedExceptions = DefinitionException.class)
-   @SpecAssertion(section = "review", id = "review")
+   @SpecAssertion(section = "3.4", id = "d")
    public void testProducerMethodIsNotBusinessMethod() throws Exception
    {
       assert false;
@@ -208,7 +208,7 @@
    }
 
    @Test(groups = "producerMethod", expectedExceptions = DefinitionException.class)
-   @SpecAssertion(section = "review", id = "review")
+   @SpecAssertion(section = "3.4.2", id = "d")
    public void testProducerMethodWithParameterAnnotatedDisposes() throws Exception
    {
       Bean<SpiderProducer_Broken> bean = createSimpleBean(SpiderProducer_Broken.class);
@@ -218,7 +218,7 @@
    }
 
    @Test(groups = "producerMethod", expectedExceptions = DefinitionException.class)
-   @SpecAssertion(section = "review", id = "review")
+   @SpecAssertion(section = "3.4.2", id = "e")
    public void testProducerMethodWithParameterAnnotatedObserves() throws Exception
    {
       Bean<SpiderProducer_Broken> bean = createSimpleBean(SpiderProducer_Broken.class);
@@ -231,7 +231,7 @@
    @Test(groups = "producerMethod")
    @SpecAssertions( { @SpecAssertion(section = "2.7.2", id = "b"), 
       @SpecAssertion(section = "3.4.2", id = "ba"), 
-      @SpecAssertion(section = "review", id = "review") })
+      @SpecAssertion(section = "2.4.5", id = "c") })
    public void testStereotypeSpecifiesScope() throws Exception
    {
       Bean<SpiderProducer> bean = createSimpleBean(SpiderProducer.class);
@@ -248,7 +248,7 @@
    @Test(groups = "producerMethod", expectedExceptions = DefinitionException.class)
    @SpecAssertions( { @SpecAssertion(section = "2.7.2", id = "b"), 
       @SpecAssertion(section = "3.4.2", id = "bc"), 
-      @SpecAssertion(section = "review", id = "review") })
+      @SpecAssertion(section = "2.7.4", id = "b") })
    public void testStereotypeEnforcesTypes() throws Exception
    {
       Bean<SpiderProducer_Broken> bean = createSimpleBean(SpiderProducer_Broken.class);

Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/inheritance/specialization/producer/method/ProducerMethodSpecializationTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/inheritance/specialization/producer/method/ProducerMethodSpecializationTest.java	2009-02-19 18:42:22 UTC (rev 1602)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/inheritance/specialization/producer/method/ProducerMethodSpecializationTest.java	2009-02-19 19:28:32 UTC (rev 1603)
@@ -94,7 +94,7 @@
    }
    
    @Test(expectedExceptions=InconsistentSpecializationException.class) 
-   @SpecAssertion(section="review", id = "review")
+   @SpecAssertion(section="4.3.3", id = "a")
    public void testTwoBeansSpecializeTheSameBean()
    {
       deployBeans(PictureShop_Broken.class, Bookshop_Broken.class);

Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/lookup/injection/InjectionTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/lookup/injection/InjectionTest.java	2009-02-19 18:42:22 UTC (rev 1602)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/lookup/injection/InjectionTest.java	2009-02-19 19:28:32 UTC (rev 1603)
@@ -30,7 +30,7 @@
    }
 
    @Test(groups = { "injection", "producerMethod" })
-   @SpecAssertion(section = "review", id = "review")
+   @SpecAssertion(section = "5.2", id = "aa")
    public void testInjectionPerformsBoxingIfNecessary() throws Exception
    {
       Bean<SpiderProducer> spiderProducer = createSimpleBean(SpiderProducer.class);
@@ -139,7 +139,7 @@
    }
 
    @Test(groups = { "stub", "injection", "webbeansxml" })
-   @SpecAssertion(section = "review", id = "review")
+   @SpecAssertion(section = "3.8.2", id = "e")
    public void testInjectFieldsDeclaredInXmlAndJava()
    {
       assert false;

Modified: tck/trunk/impl/src/main/resources/tck-audit.xml
===================================================================
--- tck/trunk/impl/src/main/resources/tck-audit.xml	2009-02-19 18:42:22 UTC (rev 1602)
+++ tck/trunk/impl/src/main/resources/tck-audit.xml	2009-02-19 19:28:32 UTC (rev 1603)
@@ -1092,6 +1092,11 @@
   </section>
   
   <section id="3.3.6" title="Session beans with the @New binding">
+
+    <assertion id="aa">
+      <text>Check that all enterprise beans have a @New bean</text>
+      <note>Sanity check</note>
+    </assertion>
     
     <assertion id="a">
       <text>Every EJB that satisfies the requirements of Section 3.3.2, "Which EJBs are beans?" is a bean, with scope, deployment type and bindings defined using annotations. Additionally, for each such session bean, a second bean exists which has the same bean class</text>
@@ -1899,6 +1904,11 @@
     <assertion id="d">
       <text>If the bean class of a bean declared in XML does not have a field with the name and type declared in XML, a DefinitionException is thrown by the container at deployment time</text>
     </assertion>
+    
+    <assertion id="e">
+      <text>Check fields declared in XML and Java injected</text>
+      <note>Sanity check</note>
+    </assertion>
   </section>
   
   <section id="3.9" title="Initializer methods">
@@ -2291,6 +2301,15 @@
   </section>
   
   <section id="5.2" title="Primitive types and null values">
+  
+  
+    <assertion id="aa">
+      <text>If necessary, the container performs boxing when it injects a value to a field or parameter of primitive or wrapper type.</text>
+    </assertion>
+    <assertion id="ab">
+      <text>If necessary, the container performs boxing or unboxing when it injects a value to a field or parameter of primitive or wrapper type.</text>
+    </assertion> 
+ 
     <assertion id="a">
       <text>If an injection point of primitive type resolves to a bean that may be null, such as a producer method with a nonprimitive return type or a producer field with a non-primitive type, a NullableDependencyException is thrown by the container at deployment time</text>
     </assertion>
@@ -3678,8 +3697,7 @@
     </assertion>
     
     <assertion id="c">
-      <text>If no active context object exists for the given scope type,
-Manager.getContext() must throw a ContextNotActiveException</text>
+      <text>If no active context object exists for the given scope type, Manager.getContext() must throw a ContextNotActiveException</text>
     </assertion>
     
     <assertion id="d">




More information about the weld-commits mailing list