mercredi 8 avril 2015

Arquillan EJB test not running

I wrote an Arquillan test, but nothing seems to happen after deployment annotation



@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();
}
}
}


I run it from Eclipse as JUnit Test, but debug goes out deployment method after nothing happens


Aucun commentaire:

Enregistrer un commentaire