From 87ca2bb58bb06fc4f340e76353162302a57aa0e0 Mon Sep 17 00:00:00 2001 From: Scott M Stark Date: Wed, 30 Oct 2024 17:15:48 -0600 Subject: [PATCH] Add an empty beans.xml to the CustomJsonbSerializationIT and ApplicationContextIT test archives. Fixes #1526 Signed-off-by: Scott M Stark --- .../tck/core/rest/context/app/ApplicationContextIT.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core-profile-tck/tck/src/main/java/ee/jakarta/tck/core/rest/context/app/ApplicationContextIT.java b/core-profile-tck/tck/src/main/java/ee/jakarta/tck/core/rest/context/app/ApplicationContextIT.java index f8b7d55d19..05a90db364 100644 --- a/core-profile-tck/tck/src/main/java/ee/jakarta/tck/core/rest/context/app/ApplicationContextIT.java +++ b/core-profile-tck/tck/src/main/java/ee/jakarta/tck/core/rest/context/app/ApplicationContextIT.java @@ -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; @@ -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;