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

webbeans-commits at lists.jboss.org webbeans-commits at lists.jboss.org
Sun Feb 22 15:54:22 EST 2009


Author: pete.muir at jboss.org
Date: 2009-02-22 15:54:21 -0500 (Sun, 22 Feb 2009)
New Revision: 1647

Modified:
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/integration/implementation/enterprise/EnterpriseBeanLifecycleTest.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/passivating/PassivatingContextTest.java
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/implementation/producer/field/ProducerFieldLifecycleTest.java
   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/simple/lifecycle/SimpleBeanLifecycleTest.java
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/lookup/injectionpoint/InjectionPointTest.java
   tck/trunk/impl/src/main/resources/tck-audit.xml
Log:
More matches

Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/integration/implementation/enterprise/EnterpriseBeanLifecycleTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/integration/implementation/enterprise/EnterpriseBeanLifecycleTest.java	2009-02-22 20:47:03 UTC (rev 1646)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/integration/implementation/enterprise/EnterpriseBeanLifecycleTest.java	2009-02-22 20:54:21 UTC (rev 1647)
@@ -35,7 +35,10 @@
    }
 
    @Test(groups = { "enterpriseBeans", "clientProxy", "lifecycle", "integration", "stub" })
-   @SpecAssertion(section = "6.5", id = "b")
+   @SpecAssertions({
+      @SpecAssertion(section = "6.5", id = "b"),
+      @SpecAssertion(section = "6", id = "e")
+   })
    public void testDestroyMethodCalled() throws Exception
    {
       // GoodDoggie.destructorCalled = 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-22 20:47:03 UTC (rev 1646)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/ContextTest.java	2009-02-22 20:54:21 UTC (rev 1647)
@@ -62,7 +62,7 @@
    }
 
    @Test(expectedExceptions = { IllegalArgumentException.class }, groups = { "manager" })
-   @SpecAssertion(section = "8.6", id = "c")
+   @SpecAssertion(section = "8.6", id = "d")
    public void testGetContextWithTooManyActiveContextsFails()
    {
       Context firstContext = new DummyContext()

Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/PassivatingContextTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/PassivatingContextTest.java	2009-02-22 20:47:03 UTC (rev 1646)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/PassivatingContextTest.java	2009-02-22 20:54:21 UTC (rev 1647)
@@ -11,6 +11,7 @@
 import javax.inject.manager.Bean;
 
 import org.hibernate.tck.annotations.SpecAssertion;
+import org.hibernate.tck.annotations.SpecAssertions;
 import org.jboss.jsr299.tck.AbstractDeclarativeTest;
 import org.testng.annotations.Test;
 
@@ -54,7 +55,10 @@
    }
 
    @Test(groups = { "contexts", "passivation" })
-   @SpecAssertion(section = "8.4", id = "f")
+   @SpecAssertions({
+      @SpecAssertion(section = "8.4", id = "f"),
+      @SpecAssertion(section = "8.4", id = "i")
+   })
    public void testSimpleWebBeanDeclaringPassivatingScopeIsSerializedWhenContextIsPassivated() throws IOException, ClassNotFoundException
    {
       deployBeans(Kajaani.class);

Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/implementation/producer/field/ProducerFieldLifecycleTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/implementation/producer/field/ProducerFieldLifecycleTest.java	2009-02-22 20:47:03 UTC (rev 1646)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/implementation/producer/field/ProducerFieldLifecycleTest.java	2009-02-22 20:54:21 UTC (rev 1647)
@@ -57,7 +57,10 @@
    @Test(groups = { "producerField" })
    @SpecAssertions({
      @SpecAssertion(section = "6.8", id = "k"),
-     @SpecAssertion(section = "6.8", id = "l")
+     @SpecAssertion(section = "6.8", id = "l"),
+     @SpecAssertion(section = "6", id = "c"),
+     @SpecAssertion(section = "6.8", id = "a"),
+     @SpecAssertion(section = "6.8", id = "g")
    })
    public void testProducerFieldBeanCreate() throws Exception
    {
@@ -74,7 +77,7 @@
    }
 
    @Test(groups = { "producerField", "specialization" })
-   @SpecAssertion(section = "6.8", id = "j")
+   @SpecAssertion(section = "6.8", id = "i")
    public void testSpecializedBeanAlwaysUsed() throws Exception
    {
       deployBeans(TarantulaProducer.class, SpecializedTarantulaProducer.class, TarantulaConsumer.class);

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-22 20:47:03 UTC (rev 1646)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/implementation/producer/method/lifecycle/ProducerMethodLifecycleTest.java	2009-02-22 20:54:21 UTC (rev 1647)
@@ -27,7 +27,9 @@
    @SpecAssertions({
       @SpecAssertion(section = "3.4", id = "c"),
       @SpecAssertion(section = "3.4", id = "k"),
-      @SpecAssertion(section = "3.4.2", id = "a")
+      @SpecAssertion(section = "3.4.2", id = "a"),
+      @SpecAssertion(section = "6", id = "a"),
+      @SpecAssertion(section = "6.7", id = "e")
    })
    public void testProducerMethodBeanCreate() throws Exception
    {
@@ -35,7 +37,9 @@
    }
 
    @Test(groups = { "specialization" })
-   @SpecAssertion(section = "6.7", id = "g")
+   @SpecAssertions({
+      @SpecAssertion(section = "6.7", id = "g")
+   })
    public void testSpecializedBeanAlwaysUsed() throws Exception
    {
       new RunInDependentContext()
@@ -63,7 +67,7 @@
    @Test(groups = { "producerMethod", "broken" })
    @SpecAssertions({
       @SpecAssertion(section = "3.4", id = "e"), 
-      @SpecAssertion(section = "7.3", id = "unknown") 
+      @SpecAssertion(section = "6.7", id = "k") 
    })
    public void testProducerMethodReturnsNullIsDependent() throws Exception
    {
@@ -72,7 +76,8 @@
 
    @Test(groups = "producerMethod", expectedExceptions = IllegalProductException.class)
    @SpecAssertions({
-      @SpecAssertion(section = "3.4", id = "f")
+      @SpecAssertion(section = "3.4", id = "f"),
+      @SpecAssertion(section = "6.7", id = "l")
    })
    public void testProducerMethodReturnsNullIsNotDependent() throws Exception
    {

Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/implementation/simple/lifecycle/SimpleBeanLifecycleTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/implementation/simple/lifecycle/SimpleBeanLifecycleTest.java	2009-02-22 20:47:03 UTC (rev 1646)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/implementation/simple/lifecycle/SimpleBeanLifecycleTest.java	2009-02-22 20:54:21 UTC (rev 1647)
@@ -74,7 +74,8 @@
       @SpecAssertion(section = "6.2", id = "a"),
       @SpecAssertion(section="2", id="g"),
       @SpecAssertion(section="2.2", id="f"),
-      @SpecAssertion(section="3.2.6", id="a")
+      @SpecAssertion(section="3.2.6", id="a"),
+      @SpecAssertion(section = "6", id = "d")
    })
    public void testCreateReturnsInstanceOfBean()
    {
@@ -132,7 +133,9 @@
    @Test(groups = { "beanLifecycle", "lifecycleCallbacks" })
    @SpecAssertions({
      @SpecAssertion(section = "6.2", id = "f"),
-     @SpecAssertion(section = "6.3", id = "b")
+     @SpecAssertion(section = "6.3", id = "b"),
+     @SpecAssertion(section = "6.4", id = "j"),
+     @SpecAssertion(section = "6.4", id = "k")
    })
    public void testPostConstructPreDestroy() throws Exception
    {

Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/lookup/injectionpoint/InjectionPointTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/lookup/injectionpoint/InjectionPointTest.java	2009-02-22 20:47:03 UTC (rev 1646)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/lookup/injectionpoint/InjectionPointTest.java	2009-02-22 20:54:21 UTC (rev 1647)
@@ -275,8 +275,7 @@
 
    @Test(groups = { "injectionPoint" })
    @SpecAssertions({
-      @SpecAssertion(section = "5.6.1", id = "zc"),
-      @SpecAssertion(section = "5.6.1", id = "ab")
+      @SpecAssertion(section = "5.6.1", id = "zc")
    })
    public void testApiTypeInjectionPoint()
    {

Modified: tck/trunk/impl/src/main/resources/tck-audit.xml
===================================================================
--- tck/trunk/impl/src/main/resources/tck-audit.xml	2009-02-22 20:47:03 UTC (rev 1646)
+++ tck/trunk/impl/src/main/resources/tck-audit.xml	2009-02-22 20:54:21 UTC (rev 1647)
@@ -1937,7 +1937,7 @@
       <text>An injected field is a non-static~, non-final~ field of a bean class.</text>
     </assertion>
     
-    <assertion id="aa">
+    <assertion id="ab">
       <text>An injected field is a ~non-static, ~non-final field of a bean class.</text>
     </assertion>
     
@@ -3115,16 +3115,18 @@
   </section>
   
   <section id="6.1" title="The Contextual interface">
-    <assertion id="a">
+    <assertion id="a" testable="false">
       <text>The interface javax.context.CreationalContext provides an operation that allows the create() method to register an incompletely initialized contextual instance with the container.  A contextual instance is considered incompletely initialized until the create() method returns the instance</text>
+      <note>Statement of intent</note>
     </assertion>
     
     <assertion id="b">
       <text>If Contextual.create() calls CreationalContext.push(), it must also return the instance passed to push()</text>
     </assertion>
     
-    <assertion id="c">
+    <assertion id="c" testable="false">
       <text>The implementation of Contextual is not required to call CreationalContext.push()</text>
+      <note>No way to test this really</note>
     </assertion>
   </section>
   
@@ -3179,8 +3181,9 @@
       <text>If any exception occurs while destroying an instance, the exception is caught by the destroy() method</text>
     </assertion>
     
-    <assertion id="e">
+    <assertion id="e" testable="false">
       <text>If the application invokes a contextual instance after it has been destroyed, the behavior is undefined</text>
+      <note>In otherwords, the behavious is unspecified!</note>
     </assertion>
   </section>
   
@@ -3254,8 +3257,9 @@
       <text>When the create() method of a Bean object that represents a stateless session or singleton session bean is called, the container creates and returns a session bean proxy, as defined in Section 3.3.9, "Session bean proxies".</text>
     </assertion>
     
-    <assertion id="b">
+    <assertion id="b" testable="false">
       <text>When the destroy() method of a Bean object is called, the container simply discards the proxy and all underlying EJB local object references</text>
+      <note>Untestable</note>
     </assertion>
   </section>
   
@@ -3264,16 +3268,19 @@
       <text>Any Java object may be returned by a producer method. It is not required that the returned object be an instance of another bean</text>
     </assertion>
     
-    <assertion id="b">
+    <assertion id="b" testable="false">
       <text>If an object returned by a producer method is not an instance of another bean, the container will not provide injection of other beans</text>
+      <note>In other words the behaviour is unspecified</note>
     </assertion>
     
-    <assertion id="c">
+    <assertion id="c" testable="false">
       <text>If an object returned by a producer method is not an instance of another bean, the container will not provide lifecycle callbacks</text>
+      <note>In other words the behaviour is unspecified</note>
     </assertion>
     
-    <assertion id="d">
+    <assertion id="d" testable="false">
       <text>If an object returned by a producer method is not an instance of another bean, the container will not provide method and lifecycle interception</text>
+      <note>In other words the behaviour is unspecified</note>
     </assertion>
     
     <assertion id="e">
@@ -3342,20 +3349,24 @@
       <text>It is not required that the returned object of a producer field be an instance of another bean</text>
     </assertion>
     
-    <assertion id="c">
+    <assertion id="c" testable="false">
       <text>If the object returned by a producer field is not an instance of another bean, the container will not provide injection of other beans</text>
+      <note>In other words the behaviour is unspecified</note>
     </assertion>
     
-    <assertion id="d">
+    <assertion id="d" testable="false">
       <text>If the object returned by a producer field is not an instance of another bean, the container will not provide lifecycle callbacks</text>
+      <note>In other words the behaviour is unspecified</note>
     </assertion>
     
-    <assertion id="e">
+    <assertion id="e" testable="false">
       <text>If the object returned by a producer field is not an instance of another bean, the container will not provide method interception</text>
+      <note>In other words the behaviour is unspecified</note>
     </assertion>
     
-    <assertion id="f">
+    <assertion id="f" testable="false">
       <text>If the object returned by a producer field is not an instance of another bean, the container will not provide lifecycle interception</text>
+      <note>In other words the behaviour is unspecified</note>
     </assertion>
     
     <assertion id="g">
@@ -4160,8 +4171,9 @@
       <text>There may be no more than one mapped instance of a context object per contextual type per thread</text>
     </assertion>
     
-    <assertion id="b">
+    <assertion id="b" testable="false">
       <text>A context may be associated with one or more threads</text>
+      <note>A statement of intent</note>
     </assertion>
     
     <assertion id="c">
@@ -4176,12 +4188,14 @@
       <text>Contexts with normal scopes must obey the following rule: Suppose beans A, B and Z all have normal scopes. Suppose A has an injection point x, and B has an injection point y. Suppose further that both x and y resolve to bean Z according to the typesafe resolution algorithm. If a is the current instance of A, and b is the current instance of B, then both a.x and b.y refer to the same instance of Z. This instance is the current instance of Z.</text>
     </assertion>
     
-    <assertion id="f">
+    <assertion id="f" testable="false">
       <text>All pseudo-scopes must be explicitly declared @ScopeType(normal=false), to indicate to the container that no client proxy is required</text>
+      <note>A statement of intent</note>
     </assertion>
     
-    <assertion id="g">
+    <assertion id="g" testable="false">
       <text>All scopes defined by this specification, except for the @Dependent pseudo-scope, are normal scopes</text>
+      <note>A statement of intent</note>
     </assertion>
   </section>
   
@@ -4274,8 +4288,9 @@
       <text>The container must destroy any @Dependent scoped contextual instance created to receive a producer method, producer field, disposal method or observer method invocation when the invocation completes</text>
     </assertion>
     
-    <assertion id="e">
+    <assertion id="e" testable="false">
       <text>The container is permitted to destroy any @Dependent scoped contextual instance at any time if the instance is no Scopes and contexts longer referenced by the application (excluding weak, soft and phantom references)</text>
+      <note>In other words this is unspecified</note>
     </assertion>
   </section>
   
@@ -4302,12 +4317,14 @@
       <note>Sanity test</note>
     </assertion>
     
-    <assertion id="d">
+    <assertion id="d" testable="false">
       <text>The built-in session and conversation scopes are passivating</text>
+      <note>This is an API signature test</note>
     </assertion>
     
-    <assertion id="e">
+    <assertion id="e" testable="false">
       <text>No other built-in scope besides session and conversation scopes are passivating</text>
+      <note>This is an API signature test</note>
     </assertion>
     
     <assertion id="f">
@@ -4318,8 +4335,9 @@
       <text>A contextual instance of a bean may be serialized when the bean is an EJB stateful session bean, and it is passivated by the EJB container</text>
     </assertion>
     
-    <assertion id="h">
+    <assertion id="h" testable="false">
       <text>In either case of assertion f or g above, any non-transient field that holds a reference to another bean must be serialized along with the bean that is being serialized. Therefore, the reference must be to a serializable type</text>
+      <note>An explanation</note>
     </assertion>
     
     <assertion id="i">
@@ -4611,8 +4629,9 @@
       <text>If the propagated conversation cannot be restored, the request is associated with a new transient conversation</text>
     </assertion>
     
-    <assertion id="t">
+    <assertion id="t" testable="false">
       <text>The method Conversation.setTimeout() is a hint to the container that a conversation should not be destroyed if it has been active within the last given interval in milliseconds</text>
+      <note>Not required</note>
     </assertion>
     
     <assertion id="u">




More information about the weld-commits mailing list