[weld-commits] Weld SVN: r6907 - in core/trunk: impl/src/test/java/org/jboss/weld/tests/unit/reflection/clazz and 1 other directories.

weld-commits at lists.jboss.org weld-commits at lists.jboss.org
Thu Aug 5 05:18:24 EDT 2010


Author: aslak
Date: 2010-08-05 05:18:23 -0400 (Thu, 05 Aug 2010)
New Revision: 6907

Added:
   core/trunk/impl/src/test/java/org/jboss/weld/tests/unit/reflection/annotation/
   core/trunk/impl/src/test/java/org/jboss/weld/tests/unit/reflection/clazz/
Removed:
   core/trunk/tests-arquillian/src/test/java/org/jboss/weld/tests/unit/reflection/annotation/
   core/trunk/tests-arquillian/src/test/java/org/jboss/weld/tests/unit/reflection/clazz/
Modified:
   core/trunk/impl/src/test/java/org/jboss/weld/tests/unit/reflection/clazz/WeldClassTest.java
Log:
WELD-493 Moved reflection unit tests to core. 2 test WeldClassTest added to @Ignore, can not be tested in isolation, need initialization of Container

Copied: core/trunk/impl/src/test/java/org/jboss/weld/tests/unit/reflection/annotation (from rev 6902, core/trunk/tests-arquillian/src/test/java/org/jboss/weld/tests/unit/reflection/annotation)

Copied: core/trunk/impl/src/test/java/org/jboss/weld/tests/unit/reflection/clazz (from rev 6902, core/trunk/tests-arquillian/src/test/java/org/jboss/weld/tests/unit/reflection/clazz)

Modified: core/trunk/impl/src/test/java/org/jboss/weld/tests/unit/reflection/clazz/WeldClassTest.java
===================================================================
--- core/trunk/tests-arquillian/src/test/java/org/jboss/weld/tests/unit/reflection/clazz/WeldClassTest.java	2010-08-04 15:02:12 UTC (rev 6902)
+++ core/trunk/impl/src/test/java/org/jboss/weld/tests/unit/reflection/clazz/WeldClassTest.java	2010-08-05 09:18:23 UTC (rev 6907)
@@ -28,10 +28,10 @@
 import org.jboss.weld.introspector.jlr.WeldClassImpl;
 import org.jboss.weld.metadata.TypeStore;
 import org.jboss.weld.resources.ClassTransformer;
-import org.jboss.weld.tests.category.Broken;
+import org.jboss.weld.util.reflection.instantiation.InstantiatorFactory;
 import org.junit.Assert;
+import org.junit.Ignore;
 import org.junit.Test;
-import org.junit.experimental.categories.Category;
 
 //@Artifact
 public class WeldClassTest
@@ -43,7 +43,7 @@
     * description = "WELD-216"
     */
    @Test
-   @Category(Broken.class)
+   @Ignore // Broken
    public void testMemberClassWithGenericTypes()
    {
       AnnotatedType at = WeldClassImpl.of(new Kangaroo().procreate().getClass(), transformer);
@@ -54,6 +54,13 @@
     * description = "WELD-216"
     */
    @Test
+   @Ignore 
+   /*
+    *  Not isolated, depends on someone else initializing Containers.
+    *  
+    *  getUnproxyableClassException() catch(NoSuchMethodException)
+    *           InstantiatorFactory.useInstantiators() <-- Needs Containers
+    */
    public void testLocalClassWithGenericTypes()
    {
       AnnotatedType at = WeldClassImpl.of(new Koala().procreate().getClass(), transformer);
@@ -64,6 +71,13 @@
     * description = "WELD-216"
     */
    @Test
+   @Ignore 
+   /*
+    *  Not isolated, depends on someone else initializing Containers.
+    *  
+    *  getUnproxyableClassException() catch(NoSuchMethodException)
+    *           InstantiatorFactory.useInstantiators() <-- Needs Containers
+    */
    public void testAnonymousClassWithGenericTypes()
    {
       AnnotatedType at = WeldClassImpl.of(new Possum().procreate().getClass(), transformer);



More information about the weld-commits mailing list