Skip to content

Commit

Permalink
reorg tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pmuir committed Nov 3, 2009
1 parent e103b2a commit 901ef49
Show file tree
Hide file tree
Showing 13 changed files with 38 additions and 56 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

@@ -0,0 +1,6 @@
package org.jboss.weld.test.unit.reflection.clazz;

interface Animal
{

}
@@ -0,0 +1,7 @@
package org.jboss.weld.test.unit.reflection.clazz;


class Antelope implements Animal
{

}
@@ -1,26 +1,33 @@
package org.jboss.weld.test.unit.implementation.annotatedItem;
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.jboss.weld.test.AbstractWeldTest;
import org.testng.annotations.Test;

@Artifact
public class ClassAnnotatedItemTest extends AbstractWeldTest
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()
{
Expand Down
@@ -1,4 +1,4 @@
package org.jboss.weld.test.unit.implementation.annotatedItem.anonymous;
package org.jboss.weld.test.unit.reflection.clazz;


class Kangaroo
Expand Down
@@ -0,0 +1,8 @@
package org.jboss.weld.test.unit.reflection.clazz;


@Random
class Order
{

}
@@ -1,4 +1,4 @@
package org.jboss.weld.test.unit.implementation.annotatedItem;
package org.jboss.weld.test.unit.reflection.clazz;

import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
Expand Down
@@ -1,4 +1,4 @@
package org.jboss.weld.test.unit.implementation.annotatedItem.genericMethodReturnType;
package org.jboss.weld.test.unit.reflection.method;

abstract class ChoiceParent<T>
{
Expand Down
@@ -1,4 +1,4 @@
package org.jboss.weld.test.unit.implementation.annotatedItem.genericMethodReturnType;
package org.jboss.weld.test.unit.reflection.method;

import javax.enterprise.util.TypeLiteral;

Expand All @@ -16,7 +16,7 @@ public class WeldMethodTest
private final ClassTransformer transformer = new ClassTransformer(new TypeStore());
private final Class<Choice<?, ?>> CHOICE_LITERAL = new TypeLiteral<Choice<?, ?>>() {}.getRawType();

@Test(groups = "broken")
@Test(groups = "broken", description = "WELD-221")
public void testNonStaticInnerClassWithGenericTypes() throws Exception
{
WeldClass<Choice<?, ?>> clazz = WeldClassImpl.of(CHOICE_LITERAL, transformer);
Expand Down
5 changes: 2 additions & 3 deletions tests/unit-tests.xml
Expand Up @@ -42,9 +42,6 @@
<package name="org.jboss.weld.test.unit.environments.servlet" />
<package name="org.jboss.weld.test.unit.extensions" />
<package name="org.jboss.weld.test.unit.implementation" />
<package name="org.jboss.weld.test.unit.implementation.annotatedItem" />
<package name="org.jboss.weld.test.unit.implementation.annotatedItem.anonymous" />
<package name="org.jboss.weld.test.unit.implementation.annotatedItem.genericMethodReturnType" />
<package name="org.jboss.weld.test.unit.implementation.enterpise" />
<package name="org.jboss.weld.test.unit.implementation.enterpise.lifecycle" />
<package name="org.jboss.weld.test.unit.implementation.enterprise.sbi" />
Expand All @@ -69,6 +66,8 @@
<package name="org.jboss.weld.test.unit.noncontextual" />
<package name="org.jboss.weld.test.unit.preinstantiatebeanmanager" />
<package name="org.jboss.weld.test.unit.security" />
<package name="org.jboss.weld.test.unit.reflection.clazz" />
<package name="org.jboss.weld.test.unit.reflection.method" />
</packages>
</test>

Expand Down

0 comments on commit 901ef49

Please sign in to comment.