Reputation: 1290
When using Arquillian Suite Extension , should we add the other test classes using ShrinkWrap or Arquillian should do that.
Currently I am trying to use Arquillian Suite, it is adding only the class with @Runwith and rest all classes using same deployment are not added and class not found exception is generated
Please help.
Upvotes: 2
Views: 1363
Reputation: 10586
You didn't mention for which class ClassNotFoundException
is being thrown. So please update your original question.
btw. it seems that you simply missed some classes in your @Deployment
method. Consider usage of addPackages method to add all relevant classes at once.
@Deployment
public static JavaArchive createDeployment() {
JavaArchive jar = ShrinkWrap.create(JavaArchive.class)
.addPackages(true, "my.package")
.addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml");
return jar;
}
Upvotes: 2