[webbeans-commits] Webbeans SVN: r1434 - in tck/trunk/impl/src/main: java/org/jboss/webbeans/tck/unit/definition/deployment and 3 other directories.

webbeans-commits at lists.jboss.org webbeans-commits at lists.jboss.org
Fri Feb 6 17:19:56 EST 2009


Author: dallen6
Date: 2009-02-06 17:19:56 -0500 (Fri, 06 Feb 2009)
New Revision: 1434

Added:
   tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/stereotype/Deer_Broken.java
Modified:
   tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/binding/BindingDefinitionTest.java
   tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/deployment/DeploymentTypeDefinitionTest.java
   tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/scope/ScopeDefinitionTest.java
   tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/stereotype/ApplicationScopedHornedMammalStereotype.java
   tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/stereotype/StereotypeDefinitionTest.java
   tck/trunk/impl/src/main/resources/tck-unit-tests.xml
Log:
Reduced number of remaining stubs; implemented one more test for stereotype tests.

Modified: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/binding/BindingDefinitionTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/binding/BindingDefinitionTest.java	2009-02-06 21:28:34 UTC (rev 1433)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/binding/BindingDefinitionTest.java	2009-02-06 22:19:56 UTC (rev 1434)
@@ -39,7 +39,7 @@
       order.getBindings().iterator().next().annotationType().equals(Production.class);
    }
 
-   @Test(groups = { "stub", "annotationDefinition", "underInvestigation" })
+   @Test(groups = { "annotationDefinition", "underInvestigation" })
    @SpecAssertion(section = "2.3.2", id = "unknown")
    public void testBindingHasCorrectTarget()
    {
@@ -49,7 +49,7 @@
       assert false;
    }
 
-   @Test(groups = { "stub", "annotationDefinition", "underInvestigation" })
+   @Test(groups = { "annotationDefinition", "underInvestigation" })
    @SpecAssertion(section = "2.3.2", id = "unknown")
    public void testBindingHasCorrectRetention()
    {

Modified: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/deployment/DeploymentTypeDefinitionTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/deployment/DeploymentTypeDefinitionTest.java	2009-02-06 21:28:34 UTC (rev 1433)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/deployment/DeploymentTypeDefinitionTest.java	2009-02-06 22:19:56 UTC (rev 1434)
@@ -52,7 +52,7 @@
     * 
     * TODO This text is not really a testable assertion
     */
-   @Test(groups = { "stub", "annotationDefinition", "deploymentType" })
+   @Test(groups = { "underInvestigation", "annotationDefinition", "deploymentType" })
    @SpecAssertion(section = "2.5.2", id = "unknown")
    public void testDeploymentTypeHasCorrectTarget()
    {
@@ -65,7 +65,7 @@
     * 
     * TODO This text is not really a testable assertion
     */
-   @Test(groups = { "stub", "annotationDefinition", "deploymentType" })
+   @Test(groups = { "underInvestigation", "annotationDefinition", "deploymentType" })
    @SpecAssertion(section = "2.5.2", id = "unknown")
    public void testDeploymentTypeHasCorrectRetention()
    {
@@ -78,7 +78,7 @@
     * 
     * TODO This text is not really a testable assertion
     */
-   @Test(groups = { "stub", "annotationDefinition", "deploymentType" })
+   @Test(groups = { "underInvestigation", "annotationDefinition", "deploymentType" })
    @SpecAssertion(section = "2.5.2", id = "unknown")
    public void testDeploymentTypeDeclaresDeploymentTypeAnnotation()
    {

Modified: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/scope/ScopeDefinitionTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/scope/ScopeDefinitionTest.java	2009-02-06 21:28:34 UTC (rev 1433)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/scope/ScopeDefinitionTest.java	2009-02-06 22:19:56 UTC (rev 1434)
@@ -26,21 +26,27 @@
       assert mullet.getScopeType().equals(AnotherScopeType.class);
    }
    
-   @Test(groups={"stub", "annotationDefinition"}) 
+   @Test(groups={"underInvestigation", "annotationDefinition"}) 
    @SpecAssertion(section="2.4.2", id = "unknown")
    public void testScopeTypeHasCorrectTarget()
    {
       assert false;
    }
 
-   @Test(groups={"stub", "annotationDefinition"}) 
+   /**
+    * TODO This is not really a testable assertion
+    */
+   @Test(groups={"underInvestigation", "annotationDefinition"}) 
    @SpecAssertion(section="2.4.2", id = "unknown")
    public void testScopeTypeHasCorrectRetention()
    {
       assert false;
    }
 
-   @Test(groups={"stub", "annotationDefinition"}) 
+   /**
+    * TODO If a scope has no scope type annotation, then it is not a scope and cannot be tested
+    */
+   @Test(groups={"underInvestigation", "annotationDefinition"}) 
    @SpecAssertion(section="2.4.2", id = "unknown")
    public void testScopeTypeDeclaresScopeTypeAnnotation()
    {

Modified: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/stereotype/ApplicationScopedHornedMammalStereotype.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/stereotype/ApplicationScopedHornedMammalStereotype.java	2009-02-06 21:28:34 UTC (rev 1433)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/stereotype/ApplicationScopedHornedMammalStereotype.java	2009-02-06 22:19:56 UTC (rev 1434)
@@ -9,6 +9,7 @@
 import javax.annotation.Stereotype;
 import javax.context.ApplicationScoped;
 
+ at ApplicationScoped
 @Stereotype(supportedScopes=ApplicationScoped.class)
 @Target( { TYPE })
 @Retention(RUNTIME)

Added: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/stereotype/Deer_Broken.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/stereotype/Deer_Broken.java	                        (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/stereotype/Deer_Broken.java	2009-02-06 22:19:56 UTC (rev 1434)
@@ -0,0 +1,8 @@
+package org.jboss.webbeans.tck.unit.definition.stereotype;
+
+ at ApplicationScopedHornedMammalStereotype
+ at SessionScopedHornedMammalStereotype
+public class Deer_Broken
+{
+
+}


Property changes on: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/stereotype/Deer_Broken.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Modified: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/stereotype/StereotypeDefinitionTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/stereotype/StereotypeDefinitionTest.java	2009-02-06 21:28:34 UTC (rev 1433)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/stereotype/StereotypeDefinitionTest.java	2009-02-06 22:19:56 UTC (rev 1434)
@@ -32,21 +32,30 @@
       return deploymentTypes;
    }
    
-   @Test(groups = { "stub", "annotationDefinition" }, expectedExceptions = DefinitionException.class)
+   /**
+    * TODO Difficult to test since all user defined stereotypes are not known here
+    */
+   @Test(groups = { "underInvestigation", "annotationDefinition" })
    @SpecAssertion(section = "2.7.1", id = "unknown")
    public void testHasCorrectTarget()
    {
       assert false;
    }
    
-   @Test(groups = { "stub", "annotationDefinition" }, expectedExceptions = DefinitionException.class)
+   /**
+    * TODO Difficult to test since all user defined stereotypes are not known here
+    */
+   @Test(groups = { "underInvestigation", "annotationDefinition" }, expectedExceptions = DefinitionException.class)
    @SpecAssertion(section = "2.7.1", id = "unknown")
    public void testHasCorrectRetention()
    {
       assert false;
    }
    
-   @Test(groups = { "stub", "annotationDefinition" }, expectedExceptions = DefinitionException.class)
+   /**
+    * TODO If the stereotype does not have a stereotype annotation, then it isn't one and is difficult to test
+    */
+   @Test(groups = { "underInvestigation", "annotationDefinition" })
    @SpecAssertion(section = "2.7.1", id = "unknown")
    public void testHasStereotypeAnnotation()
    {
@@ -156,14 +165,14 @@
       deployBeans(Goat_Broken.class);
    }
    
-   @Test(expectedExceptions = DefinitionException.class, groups = "stub")
+   @Test(expectedExceptions = DefinitionException.class)
    @SpecAssertions({
      @SpecAssertion(section = "2.7.2", id = "unknown"),
      @SpecAssertion(section = "2.7.4", id = "unknown")
    })
    public void testMultipleStereotypesWithMultipleScopeTypes()
    {
-      assert false;
+      deployBeans(Deer_Broken.class);
    }
    
    @Test(groups = { "stub", "webbeansxml" })

Modified: tck/trunk/impl/src/main/resources/tck-unit-tests.xml
===================================================================
--- tck/trunk/impl/src/main/resources/tck-unit-tests.xml	2009-02-06 21:28:34 UTC (rev 1433)
+++ tck/trunk/impl/src/main/resources/tck-unit-tests.xml	2009-02-06 22:19:56 UTC (rev 1434)
@@ -30,6 +30,7 @@
 -->
             <exclude name="stub" />
             <exclude name="broken" />
+            <exclude name="underInvestigation" />
          </run>
       </groups>
       <packages>




More information about the weld-commits mailing list