我写了一个Arquillan测试,但在部署注释之后似乎没有发生任何事情
@RunWith(Arquillian.class)
public class EjbTest {
@Inject
private RepAlertManager ejb;
@Deployment
public static Archive<?> createDeployment() {
return ShrinkWrap.create(JavaArchive.class, "foo.jar")
.addClasses(RepAlertManagerImpl.class)
.addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml");
}
@Test
public void testEjb() throws IOException, SQLException {
try
{
List<Long> result = ejb.doSomething("ENTRATE");
for(Long temp:result){
System.out.println(temp);
}
}
catch (Exception e)
{
e.printStackTrace();
}
}
}
我从Eclipse运行它作为JUnit Test,但是在没有任何反应之后调试会发布部署方法