Skip to content

Commit

Permalink
fix AnnotationFullTests, make war file a bean archive
Browse files Browse the repository at this point in the history
    
With the current setup, the deployment ends with WELD error
Unable to identify the correct BeanManager. The calling class
ee.jakarta.tck.concurrent.spec.Platform.anno.AnnotationServlet is not
placed in bean archive
  • Loading branch information
aubi committed Apr 13, 2024
1 parent 8d521da commit 4ff3654
Showing 1 changed file with 3 additions and 1 deletion.
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 4ff3654

Please sign in to comment.