[weld-commits] Weld SVN: r4615 - core/trunk/tests/src/test/java/org/jboss/weld/test/unit/reflection/clazz.

weld-commits at lists.jboss.org weld-commits at lists.jboss.org
Tue Nov 3 09:16:06 EST 2009


Author: pete.muir at jboss.org
Date: 2009-11-03 09:16:06 -0500 (Tue, 03 Nov 2009)
New Revision: 4615

Added:
   core/trunk/tests/src/test/java/org/jboss/weld/test/unit/reflection/clazz/WeldClassTest.java
Removed:
   core/trunk/tests/src/test/java/org/jboss/weld/test/unit/reflection/clazz/ClassAnnotatedItemTest.java
Log:
minor

Deleted: core/trunk/tests/src/test/java/org/jboss/weld/test/unit/reflection/clazz/ClassAnnotatedItemTest.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/test/unit/reflection/clazz/ClassAnnotatedItemTest.java	2009-11-03 14:12:34 UTC (rev 4614)
+++ core/trunk/tests/src/test/java/org/jboss/weld/test/unit/reflection/clazz/ClassAnnotatedItemTest.java	2009-11-03 14:16:06 UTC (rev 4615)
@@ -1,61 +0,0 @@
-package org.jboss.weld.test.unit.reflection.clazz;
-
-import java.lang.annotation.Annotation;
-import java.util.Iterator;
-import java.util.Set;
-
-import javax.enterprise.inject.Stereotype;
-import javax.enterprise.inject.spi.AnnotatedType;
-import javax.inject.Qualifier;
-
-import org.jboss.testharness.impl.packaging.Artifact;
-import org.jboss.weld.introspector.WeldClass;
-import org.jboss.weld.introspector.jlr.WeldClassImpl;
-import org.jboss.weld.metadata.TypeStore;
-import org.jboss.weld.resources.ClassTransformer;
-import org.testng.annotations.Test;
-
- at Artifact
-public class ClassAnnotatedItemTest
-{
-	
-   private final ClassTransformer transformer = new ClassTransformer(new TypeStore());
-   
-   @Test(groups = "broken", description="WELD-216")
-   public void testNonStaticInnerClassWithGenericTypes()
-   {
-      AnnotatedType at = WeldClassImpl.of(new Kangaroo().procreate().getClass(), transformer);
-      WeldClassImpl.of(at, transformer);
-   }
-   
-   @Test
-   public void testDeclaredAnnotations()
-   {
-      WeldClass<Order> annotatedElement = WeldClassImpl.of(Order.class, transformer);
-      assert annotatedElement.getAnnotations().size() == 1;
-      assert annotatedElement.getAnnotation(Random.class) != null;
-      assert annotatedElement.getJavaClass().equals(Order.class);
-   }
-   
-   @Test
-   public void testMetaAnnotations()
-   {
-      WeldClass<Order> annotatedElement = WeldClassImpl.of(Order.class, transformer);
-      Set<Annotation> annotations = annotatedElement.getMetaAnnotations(Qualifier.class);
-      assert annotations.size() == 1;
-      Iterator<Annotation> it = annotations.iterator();
-      Annotation production = it.next();
-      assert Random.class.equals(production.annotationType());
-   }
-   
-   @Test
-   public void testEmpty()
-   {
-      WeldClass<Order> annotatedElement = WeldClassImpl.of(Order.class, transformer);
-      assert annotatedElement.getAnnotation(Stereotype.class) == null;
-      assert annotatedElement.getMetaAnnotations(Stereotype.class).size() == 0;
-      WeldClass<Antelope> classWithNoAnnotations = WeldClassImpl.of(Antelope.class, transformer);
-      assert classWithNoAnnotations.getAnnotations().size() == 0;
-   }
-
-}

Copied: core/trunk/tests/src/test/java/org/jboss/weld/test/unit/reflection/clazz/WeldClassTest.java (from rev 4613, core/trunk/tests/src/test/java/org/jboss/weld/test/unit/reflection/clazz/ClassAnnotatedItemTest.java)
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/test/unit/reflection/clazz/WeldClassTest.java	                        (rev 0)
+++ core/trunk/tests/src/test/java/org/jboss/weld/test/unit/reflection/clazz/WeldClassTest.java	2009-11-03 14:16:06 UTC (rev 4615)
@@ -0,0 +1,61 @@
+package org.jboss.weld.test.unit.reflection.clazz;
+
+import java.lang.annotation.Annotation;
+import java.util.Iterator;
+import java.util.Set;
+
+import javax.enterprise.inject.Stereotype;
+import javax.enterprise.inject.spi.AnnotatedType;
+import javax.inject.Qualifier;
+
+import org.jboss.testharness.impl.packaging.Artifact;
+import org.jboss.weld.introspector.WeldClass;
+import org.jboss.weld.introspector.jlr.WeldClassImpl;
+import org.jboss.weld.metadata.TypeStore;
+import org.jboss.weld.resources.ClassTransformer;
+import org.testng.annotations.Test;
+
+ at Artifact
+public class WeldClassTest
+{
+	
+   private final ClassTransformer transformer = new ClassTransformer(new TypeStore());
+   
+   @Test(groups = "broken", description="WELD-216")
+   public void testNonStaticInnerClassWithGenericTypes()
+   {
+      AnnotatedType at = WeldClassImpl.of(new Kangaroo().procreate().getClass(), transformer);
+      WeldClassImpl.of(at, transformer);
+   }
+   
+   @Test
+   public void testDeclaredAnnotations()
+   {
+      WeldClass<Order> annotatedElement = WeldClassImpl.of(Order.class, transformer);
+      assert annotatedElement.getAnnotations().size() == 1;
+      assert annotatedElement.getAnnotation(Random.class) != null;
+      assert annotatedElement.getJavaClass().equals(Order.class);
+   }
+   
+   @Test
+   public void testMetaAnnotations()
+   {
+      WeldClass<Order> annotatedElement = WeldClassImpl.of(Order.class, transformer);
+      Set<Annotation> annotations = annotatedElement.getMetaAnnotations(Qualifier.class);
+      assert annotations.size() == 1;
+      Iterator<Annotation> it = annotations.iterator();
+      Annotation production = it.next();
+      assert Random.class.equals(production.annotationType());
+   }
+   
+   @Test
+   public void testEmpty()
+   {
+      WeldClass<Order> annotatedElement = WeldClassImpl.of(Order.class, transformer);
+      assert annotatedElement.getAnnotation(Stereotype.class) == null;
+      assert annotatedElement.getMetaAnnotations(Stereotype.class).size() == 0;
+      WeldClass<Antelope> classWithNoAnnotations = WeldClassImpl.of(Antelope.class, transformer);
+      assert classWithNoAnnotations.getAnnotations().size() == 0;
+   }
+
+}


Property changes on: core/trunk/tests/src/test/java/org/jboss/weld/test/unit/reflection/clazz/WeldClassTest.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain
Name: svn:eol-style
   + native



More information about the weld-commits mailing list