I'm using Arquillian for testing and get this error:
org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type WebTarget with qualifiers @Default
My test file looks like :
@Deployment
public static JavaArchive createDeployment() {
return ShrinkWrap.create(JavaArchive.class).addClasses(A.class, B.class)
.addAsManifestResource(EmptyAsset.INSTANCE, ArchivePaths.create("beans.xml"));
}
And the class A contains:
@Inject WebTarget
I've gone through other questions and I suppose that I could write a produce like suggested here but my application works fine as is when deployed on the application server so I'd rather not.
Is there another way to solve the problem?
Aucun commentaire:
Enregistrer un commentaire