Skip to content

Commit

Permalink
port manager tests, fix build problem
Browse files Browse the repository at this point in the history
git-svn-id: http://anonsvn.jboss.org/repos/weld/ri/trunk@1026 1c488680-804c-0410-94cd-c6b725194a0e
  • Loading branch information
pmuir committed Jan 16, 2009
1 parent a175eed commit 522c27a
Showing 1 changed file with 1 addition and 16 deletions.
Expand Up @@ -4,21 +4,13 @@
import javax.webbeans.RequestScoped;
import javax.webbeans.manager.Context;

import org.jboss.webbeans.bean.SimpleBean;
import org.jboss.webbeans.context.RequestContext;
import org.jboss.webbeans.test.beans.FishFarmOffice;
import org.testng.annotations.Test;

@SpecVersion("PDR")
public class ManagerTest extends AbstractTest
{

@Test(groups={"manager", "injection", "deployment"}) @SpecAssertion(section="5.8")
public void testInjectingManager()
{
FishFarmOffice fishFarmOffice = SimpleBean.of(FishFarmOffice.class, manager).create();
assert fishFarmOffice.manager != null;
}


@Test(expectedExceptions={ContextNotActiveException.class}, groups={"manager"}) @SpecAssertion(section="8.6")
public void testGetContextWithNoActiveContextsFails()
Expand Down Expand Up @@ -51,13 +43,6 @@ public void testGetContextReturnsActiveContext()
manager.getContext(RequestScoped.class);
}

@Test(groups={"stub", "manager", "ejb3"}) @SpecAssertion(section="5.8")
public void testManagerLookupInJndi()
{
assert false;
}


/*
@Test(groups="manager") @SpecAssertion(section="5.8")
Expand Down

0 comments on commit 522c27a

Please sign in to comment.