From 9c1c522172981f6520ed739f1c7be8159001227d Mon Sep 17 00:00:00 2001 From: TomasHofman Date: Tue, 17 Sep 2024 18:21:12 +0200 Subject: [PATCH] Make ModelConstructionTest, OASFactoryErrorTest activate OpenAPI (#659) --- .../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 aadb17d43..feba79857 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 @@ -129,7 +129,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 738b1293d..d8a5d1561 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 @@ -76,7 +76,9 @@ public License url(String url) { @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})