So far I've tried these two options:
@Deployment
public static Archive<?> deploy() {
return ShrinkWrap
.create(JavaArchive.class)
.addClasses(TestClass.class)
.addAsManifestResource("<beans bean-discovery-mode=all version=1.1/>","beans.xml");
}
or
addAsManifestResource("META-INF/beans.xml","beans.xml");
but they don't work. Is there any way I could set the bean discovery to none?