Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add empty beans.xml to core profile tck tests (10.0.x) #1627

Open
wants to merge 1 commit into
base: 10.0.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import org.jboss.arquillian.junit5.ArquillianExtension;
import org.jboss.arquillian.test.api.ArquillianResource;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.shrinkwrap.api.asset.EmptyAsset;
import org.jboss.shrinkwrap.api.exporter.ZipExporter;
import org.jboss.shrinkwrap.api.spec.WebArchive;
import org.junit.jupiter.api.Test;
Expand All @@ -46,7 +47,8 @@ public static WebArchive createTestArchive() {

archive.addClass(SimpleApplicationBean.class)
.addClass(ApplicationResource.class)
.addClass(JaxRsActivator.class);
.addClass(JaxRsActivator.class)
.addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml");
System.out.printf("test archive: %s\n", archive.toString(true));
archive.as(ZipExporter.class).exportTo(new File("/tmp/" + archive.getName()), true);
return archive;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
import org.jboss.arquillian.junit5.ArquillianExtension;
import org.jboss.arquillian.test.api.ArquillianResource;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.shrinkwrap.api.asset.EmptyAsset;
import org.jboss.shrinkwrap.api.asset.StringAsset;
import org.jboss.shrinkwrap.api.exporter.ZipExporter;
import org.jboss.shrinkwrap.api.spec.WebArchive;
Expand Down Expand Up @@ -65,7 +66,8 @@ public static WebArchive createTestArchive() throws Exception {
.addClass(SomeMessage.class)
.addClass(Utils.class)
.addClass(JaxRsActivator.class)
.addAsResource(new StringAsset(pubKeyString), "key.pub");
.addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml")
.addAsResource(new StringAsset(pubKeyString), "key.pub")
;
System.out.printf("test archive: %s\n", archive.toString(true));
archive.as(ZipExporter.class).exportTo(new File("/tmp/" + archive.getName()), true);
Expand Down