From 6052ff2e30f0a25b981b29c8fd8b5f5906cbb1c7 Mon Sep 17 00:00:00 2001 From: Tomas Hofman Date: Mon, 2 Sep 2024 15:10:30 +0200 Subject: [PATCH] Make ModelConstructionTest, OASFactoryErrorTest activate OpenAPI --- .../microprofile/openapi/tck/ModelConstructionTest.java | 4 +++- .../eclipse/microprofile/openapi/tck/OASFactoryErrorTest.java | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tck/src/main/java/org/eclipse/microprofile/openapi/tck/ModelConstructionTest.java b/tck/src/main/java/org/eclipse/microprofile/openapi/tck/ModelConstructionTest.java index 410804d9..9482aab8 100644 --- a/tck/src/main/java/org/eclipse/microprofile/openapi/tck/ModelConstructionTest.java +++ b/tck/src/main/java/org/eclipse/microprofile/openapi/tck/ModelConstructionTest.java @@ -134,7 +134,9 @@ public static void assertNotSame(Object actual, Object expected, String message) @Deployment public static WebArchive createDeployment() { - return ShrinkWrap.create(WebArchive.class); + return ShrinkWrap.create(WebArchive.class) + .addPackages(true, "org.eclipse.microprofile.openapi.reader") + .addAsManifestResource("microprofile-reader.properties", "microprofile-config.properties"); } // Container for matched getter, setter and builder methods diff --git a/tck/src/main/java/org/eclipse/microprofile/openapi/tck/OASFactoryErrorTest.java b/tck/src/main/java/org/eclipse/microprofile/openapi/tck/OASFactoryErrorTest.java index b8d6eaaa..a6512ca2 100644 --- a/tck/src/main/java/org/eclipse/microprofile/openapi/tck/OASFactoryErrorTest.java +++ b/tck/src/main/java/org/eclipse/microprofile/openapi/tck/OASFactoryErrorTest.java @@ -83,7 +83,9 @@ public void setIdentifier(String identifier) { @Deployment public static WebArchive createDeployment() { - return ShrinkWrap.create(WebArchive.class); + return ShrinkWrap.create(WebArchive.class) + .addPackages(true, "org.eclipse.microprofile.openapi.reader") + .addAsManifestResource("microprofile-reader.properties", "microprofile-config.properties"); } @Test(expectedExceptions = {NullPointerException.class})