Skip to content

Commit

Permalink
Merge pull request jakartaee#473 from aubi/make-annotations-tests-bea…
Browse files Browse the repository at this point in the history
…n-archive

Fix AnnotationFullTests, Make WAR File a Bean Archive
  • Loading branch information
KyleAure authored Apr 13, 2024
2 parents 8d521da + 4ff3654 commit 0cedef2
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import org.jboss.arquillian.container.test.api.Deployment;
import org.jboss.arquillian.container.test.api.RunAsClient;
import org.jboss.arquillian.test.api.ArquillianResource;
import org.jboss.shrinkwrap.api.asset.EmptyAsset;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.shrinkwrap.api.spec.EnterpriseArchive;
import org.jboss.shrinkwrap.api.spec.JavaArchive;
Expand Down Expand Up @@ -50,7 +51,8 @@ public class AnnotationFullTests extends TestClient {
public static EnterpriseArchive createDeployment() {

WebArchive war = ShrinkWrap.create(WebArchive.class, "AnnotationTests_web.war")
.addClasses(AnnotationServlet.class);
.addClasses(AnnotationServlet.class)
.addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");

JavaArchive jar = ShrinkWrap.create(JavaArchive.class, "AnnotationTests_ejb.jar")
.addClasses(AnnotationTestBean.class, AnnotationTestBeanInterface.class)
Expand Down

0 comments on commit 0cedef2

Please sign in to comment.