[webbeans-commits] Webbeans SVN: r165 - 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 09:34:47 EDT 2008


Author: pete.muir at jboss.org
Date: 2008-10-26 09:34:47 -0400 (Sun, 26 Oct 2008)
New Revision: 165

Added:
   ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/TypeTest.java
Removed:
   ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/APITypeTest.java
   ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ApiTypeTest.java
Log:
Stupid case names

Deleted: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/APITypeTest.java
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/APITypeTest.java	2008-10-26 13:33:12 UTC (rev 164)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/APITypeTest.java	2008-10-26 13:34:47 UTC (rev 165)
@@ -1,20 +0,0 @@
-package org.jboss.webbeans.test;
-
-import static org.jboss.webbeans.test.util.Util.createSimpleModel;
-
-import org.jboss.webbeans.model.bean.BeanModel;
-import org.jboss.webbeans.test.beans.Bear;
-import org.testng.annotations.Test;
-
- at SpecVersion("PDR")
-public class ApiTypeTest extends AbstractTest 
-{
-	
-	@Test @SpecAssertion(section="2.2")
-	public void testApiTypeContainsObject()
-	{
-		BeanModel<?, ?> model = createSimpleModel(Bear.class, manager);
-		assert model.getApiTypes().contains(Object.class);
-	}
-
-}

Deleted: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ApiTypeTest.java
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ApiTypeTest.java	2008-10-26 13:33:12 UTC (rev 164)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ApiTypeTest.java	2008-10-26 13:34:47 UTC (rev 165)
@@ -1,20 +0,0 @@
-package org.jboss.webbeans.test;
-
-import static org.jboss.webbeans.test.util.Util.createSimpleModel;
-
-import org.jboss.webbeans.model.bean.BeanModel;
-import org.jboss.webbeans.test.beans.Bear;
-import org.testng.annotations.Test;
-
- at SpecVersion("PDR")
-public class ApiTypeTest extends AbstractTest 
-{
-	
-	@Test @SpecAssertion(section="2.2")
-	public void testApiTypeContainsObject()
-	{
-		BeanModel<?, ?> model = createSimpleModel(Bear.class, manager);
-		assert model.getApiTypes().contains(Object.class);
-	}
-
-}

Added: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/TypeTest.java
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/TypeTest.java	                        (rev 0)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/TypeTest.java	2008-10-26 13:34:47 UTC (rev 165)
@@ -0,0 +1,22 @@
+package org.jboss.webbeans.test;
+
+import static org.jboss.webbeans.test.util.Util.getEmptyAnnotatedType;
+
+import org.jboss.webbeans.introspector.SimpleAnnotatedType;
+import org.jboss.webbeans.model.bean.SimpleBeanModel;
+import org.jboss.webbeans.test.beans.Haddock;
+import org.testng.annotations.Test;
+
+public class TypeTest extends AbstractTest
+{
+
+   @Test @SpecAssertion(section="2.6.3")
+   public void testDefaultNamed()
+   {
+      SimpleBeanModel<Haddock> haddock = new SimpleBeanModel<Haddock>(new SimpleAnnotatedType<Haddock>(Haddock.class), getEmptyAnnotatedType(Haddock.class), manager);
+      assert haddock.getName() != null;
+      assert haddock.getName().equals("haddock");
+   }
+   
+}
+


Property changes on: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/TypeTest.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain




More information about the weld-commits mailing list