Skip to content

Commit

Permalink
Add an empty beans.xml to the CustomJsonbSerializationIT and Applicat…
Browse files Browse the repository at this point in the history
…ionContextIT test archives.

Fixes #1526

Signed-off-by: Scott M Stark <[email protected]>
  • Loading branch information
starksm64 committed Oct 30, 2024
1 parent fc62070 commit 87ca2bb
Showing 1 changed file with 3 additions and 1 deletion.
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

0 comments on commit 87ca2bb

Please sign in to comment.