Skip to content

Commit

Permalink
enable a couple of working tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pmuir committed Aug 4, 2010
1 parent 2741c17 commit 50375af
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/src/test/java/org/jboss/weld/tests/ejb/EJBTest.java
Expand Up @@ -29,7 +29,7 @@
public class EJBTest extends AbstractWeldTest
{

@Test(groups="broken")
@Test
public void testNoInterface()
{
Cow cow = getReference(Cow.class);
Expand Down
Expand Up @@ -41,6 +41,7 @@ public class EJBTest extends AbstractWeldTest

@Test(groups="broken")
// TODO Need a way to deploy test-destinations-service.xml to JBoss AS
// Port the test as broken
public void testMdbUsable() throws Exception
{
InitialContext ctx = new InitialContext();
Expand Down
Expand Up @@ -40,7 +40,7 @@
public class EnterpriseBeanInterceptionTest extends AbstractWeldTest
{

@Test(groups = { "interceptors", "incontainer-broken"})
@Test(groups = { "interceptors" })
public void testInterceptors() throws Exception
{
SessionBean<Ball> ballSessionBean = (SessionBean<Ball>)getCurrentManager().getBeans(Ball.class).iterator().next();
Expand Down
Expand Up @@ -37,6 +37,7 @@ public class SimpleWeldClassTest extends AbstractWeldTest
{

@Test(groups = "broken")
// Aslak Issue is still open, so test can be ported as is
public void testWeldClassForGenericSuperclass()
{
WeldClass<StringProcessor> weldClass = WeldClassImpl.of(StringProcessor.class, new ClassTransformer(new TypeStore()));
Expand Down
Expand Up @@ -37,6 +37,7 @@ public static void initialize()
}

@Test(groups = "broken")
// Aslak Issue is still open, so test can be ported as is
public void testInterceptorsWithHierarchy()
{
Attacker player = this.getReference(Attacker.class);
Expand Down
Expand Up @@ -37,12 +37,13 @@ public class SimpleWeldClassTest extends AbstractWeldTest
{

@Test(groups = "broken")
// Aslak Issue is still open, so test can be ported as is
public void testWeldClassForCovariantReturnType()
{
WeldClass<Attacker> weldClass = WeldClassImpl.of(Attacker.class, new ClassTransformer(new TypeStore()));
Collection methods = weldClass.getWeldMethods();
assert methods.size() == 4;
List<WeldMethod<?,?>> interceptableMethods = Beans.getInterceptableMethods(weldClass);
List<WeldMethod<?, ?>> interceptableMethods = Beans.getInterceptableMethods(weldClass);
assert interceptableMethods.size() == 4;
}

Expand Down

0 comments on commit 50375af

Please sign in to comment.