[webbeans-commits] Webbeans SVN: r1628 - tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/implementation/producer/method/lifecycle.

webbeans-commits at lists.jboss.org webbeans-commits at lists.jboss.org
Sat Feb 21 18:53:20 EST 2009


Author: shane.bryzak at jboss.com
Date: 2009-02-21 18:53:20 -0500 (Sat, 21 Feb 2009)
New Revision: 1628

Modified:
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/implementation/producer/method/lifecycle/ProducerMethodLifecycleTest.java
Log:
few more section 6 mappings

Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/implementation/producer/method/lifecycle/ProducerMethodLifecycleTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/implementation/producer/method/lifecycle/ProducerMethodLifecycleTest.java	2009-02-21 23:36:21 UTC (rev 1627)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/implementation/producer/method/lifecycle/ProducerMethodLifecycleTest.java	2009-02-21 23:53:20 UTC (rev 1628)
@@ -34,21 +34,8 @@
       assert getCurrentManager().getInstanceByType(Tarantula.class) != null;
    }
 
-   /**
-    * Otherwise, if the producer method is non-static, the container must:
-    * 
-    * • obtain the Bean object for the most specialized bean that specializes
-    * the bean which declares the producer method, and then
-    * 
-    * • obtain an instance of the most specialized bean, by calling
-    * Manager.getInstance(), passing the Bean object representing the bean, and
-    * 
-    * • invoke the producer method upon this instance.
-    * 
-    * @throws Exception
-    */
    @Test(groups = { "specialization" })
-   @SpecAssertion(section = "6.7", id = "unknown")
+   @SpecAssertion(section = "6.7", id = "g")
    public void testSpecializedBeanAlwaysUsed() throws Exception
    {
       new RunInDependentContext()
@@ -66,7 +53,7 @@
    }
 
    @Test(groups = { "stub", "disposalMethod", "beanLifecycle" })
-   @SpecAssertion(section = "6.7", id = "unknown")
+   @SpecAssertion(section = "6.7", id = "m")
    public void testDisposalMethodCalled()
    {
       // TODO Placeholder
@@ -74,14 +61,17 @@
    }
 
    @Test(groups = { "producerMethod", "broken" })
-   @SpecAssertions( { @SpecAssertion(section = "3.4", id = "e"), @SpecAssertion(section = "B.1", id = "unknown"), @SpecAssertion(section = "7.3", id = "unknown") })
+   @SpecAssertions( { @SpecAssertion(section = "3.4", id = "e"), 
+      @SpecAssertion(section = "B.1", id = "unknown"), 
+      @SpecAssertion(section = "7.3", id = "unknown") })
    public void testProducerMethodReturnsNullIsDependent() throws Exception
    {
       assert getCurrentManager().getInstanceByType(Spider.class, new AnnotationLiteral<Null>() {}) == null;
    }
 
    @Test(groups = "producerMethod", expectedExceptions = IllegalProductException.class)
-   @SpecAssertions( { @SpecAssertion(section = "3.4", id = "f"), @SpecAssertion(section = "B.1", id = "unknown") })
+   @SpecAssertions( { @SpecAssertion(section = "3.4", id = "f"), 
+      @SpecAssertion(section = "B.1", id = "unknown") })
    public void testProducerMethodReturnsNullIsNotDependent() throws Exception
    {
       assert getCurrentManager().resolveByType(Spider.class, new AnnotationLiteral<Request>() {}).size() == 1;
@@ -97,7 +87,7 @@
    }
 
    @Test(expectedExceptions = CreationException.class)
-   @SpecAssertion(section="6.7", id="unknown")
+   @SpecAssertion(section="6.2", id="h")
    public void testCreationExceptionWrapsCheckedExceptionThrownFromCreate() throws Exception
    {
       new RunInDependentContext()
@@ -112,7 +102,7 @@
    }
 
    @Test(expectedExceptions = FooException.class)
-   @SpecAssertion(section="6.7", id="unknown")
+   @SpecAssertion(section="6.2", id="g")
    public void testUncheckedExceptionThrownFromCreateNotWrapped() throws Exception
    {
       new RunInDependentContext()




More information about the weld-commits mailing list