[webbeans-commits] Webbeans SVN: r167 - ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test.

webbeans-commits at lists.jboss.org webbeans-commits at lists.jboss.org
Sun Oct 26 10:43:19 EDT 2008


Author: pete.muir at jboss.org
Date: 2008-10-26 10:43:18 -0400 (Sun, 26 Oct 2008)
New Revision: 167

Modified:
   ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/SimpleBeanModelTest.java
Log:
Leave xml constructors to later

Modified: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/SimpleBeanModelTest.java
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/SimpleBeanModelTest.java	2008-10-26 14:25:13 UTC (rev 166)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/SimpleBeanModelTest.java	2008-10-26 14:43:18 UTC (rev 167)
@@ -56,6 +56,7 @@
       new SimpleBeanModel<InnerBean>(new SimpleAnnotatedType<InnerBean>(InnerBean.class), getEmptyAnnotatedType(InnerBean.class), manager);
    }
    
+   @SuppressWarnings("unchecked")
    @Test(expectedExceptions=DefinitionException.class) @SpecAssertion(section="3.2")
    public void testParameterizedClassDeclaredInJavaIsNotAllowed()
    {
@@ -123,7 +124,7 @@
       new SimpleBeanModel<InnerBean>(new SimpleAnnotatedType<InnerBean>(InnerBean.class), getEmptyAnnotatedType(InnerBean.class), manager);
    }
    
-   @Test(expectedExceptions=DefinitionException.class) @SpecAssertion(section="3.2.4")
+   @Test(expectedExceptions=DefinitionException.class, groups="webbeansxml") @SpecAssertion(section="3.2.4")
    public void testParameterizedClassDeclaredInXmlIsNotAllowed()
    {
       assert false;
@@ -204,7 +205,7 @@
       new SimpleBeanModel<Chicken>(new SimpleAnnotatedType<Chicken>(Chicken.class), getEmptyAnnotatedType(Chicken.class), manager);
    }
    
-   @Test @SpecAssertion(section="3.2.5.2")
+   @Test(groups="webbeansxml") @SpecAssertion(section="3.2.5.2")
    public void testImplicitConstructorDeclaredInXmlUsed()
    {
       SimpleConstructor<Order> constructor = new SimpleBeanModel<Order>(new SimpleAnnotatedType<Order>(Order.class), getEmptyAnnotatedType(Order.class), manager).getConstructor();
@@ -214,7 +215,7 @@
       assert false;
    }
    
-   @Test @SpecAssertion(section="3.2.5.2")
+   @Test(groups="webbeansxml") @SpecAssertion(section="3.2.5.2")
    public void testEmptyConstructorDeclaredInXmlUsed()
    {
       SimpleConstructor<Donkey> constructor = new SimpleBeanModel<Donkey>(new SimpleAnnotatedType<Donkey>(Donkey.class), getEmptyAnnotatedType(Donkey.class), manager).getConstructor();      assert constructor.getAnnotatedItem().getDelegate().getDeclaringClass().equals(Order.class);
@@ -223,13 +224,13 @@
       assert false;
    }
    
-   @Test(expectedExceptions=NonexistentConstructorException.class) @SpecAssertion(section="3.2.5.2")
+   @Test(expectedExceptions=NonexistentConstructorException.class, groups="webbeansxml") @SpecAssertion(section="3.2.5.2")
    public void testConstructorDeclaredInXmlDoesNotExist()
    {
       assert false;
    }
    
-   @Test @SpecAssertion(section="3.2.5.2")
+   @Test(groups="webbeansxml") @SpecAssertion(section="3.2.5.2")
    public void testConstructorDeclaredInXmlIgnoresBindingTypesDeclaredInJava()
    {
       assert false;




More information about the weld-commits mailing list