Shrikant Havale
Shrikant Havale

Reputation: 1290

Arquillian Suite Extension - Should we add all test classes in Suite

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

Answers (1)

G. Demecki
G. Demecki

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

Related Questions