[webbeans-commits] Webbeans SVN: r163 - in ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test: beans and 1 other directory.
webbeans-commits at lists.jboss.org
webbeans-commits at lists.jboss.org
Sun Oct 26 08:34:07 EDT 2008
Author: pete.muir at jboss.org
Date: 2008-10-26 08:34:06 -0400 (Sun, 26 Oct 2008)
New Revision: 163
Added:
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/Rhinoceros.java
Modified:
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/DeploymentTypeTest.java
Log:
fix deployment test
Modified: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/DeploymentTypeTest.java
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/DeploymentTypeTest.java 2008-10-26 12:25:44 UTC (rev 162)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/DeploymentTypeTest.java 2008-10-26 12:34:06 UTC (rev 163)
@@ -25,6 +25,7 @@
import org.jboss.webbeans.test.annotations.HornedAnimalDeploymentType;
import org.jboss.webbeans.test.beans.Antelope;
import org.jboss.webbeans.test.beans.Reindeer;
+import org.jboss.webbeans.test.beans.Rhinoceros;
import org.jboss.webbeans.test.beans.SeaBass;
import org.jboss.webbeans.test.beans.Tuna;
import org.jboss.webbeans.test.beans.broken.BeanWithTooManyDeploymentTypes;
@@ -100,7 +101,8 @@
@Test @SpecAssertion(section="2.5.5")
public void testHighestPrecedenceDeploymentTypeFromStereotype()
{
- assert false;
+ Bean<?> bean = createSimpleWebBean(Rhinoceros.class, manager);
+ assert bean.getDeploymentType().equals(HornedAnimalDeploymentType.class);
}
@Test @SpecAssertion(section="2.5.5")
@@ -113,7 +115,7 @@
assert trout.getScopeType().equals(RequestScoped.class);
}
- @Test @SpecAssertion(section="2.5.6")
+ @Test(groups="beanLifecycle") @SpecAssertion(section="2.5.6")
public void testBeanWithDisabledDeploymentTypeNotInstantiated()
{
assert false;
Added: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/Rhinoceros.java
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/Rhinoceros.java (rev 0)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/Rhinoceros.java 2008-10-26 12:34:06 UTC (rev 163)
@@ -0,0 +1,11 @@
+package org.jboss.webbeans.test.beans;
+
+import org.jboss.webbeans.test.annotations.HornedMammalStereotype;
+import org.jboss.webbeans.test.annotations.MammalStereotype;
+
+ at HornedMammalStereotype
+ at MammalStereotype
+public class Rhinoceros implements Animal
+{
+
+}
Property changes on: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/Rhinoceros.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
More information about the weld-commits
mailing list