Skip to content

Commit

Permalink
Make ModelConstructionTest, OASFactoryErrorTest activate OpenAPI (#659)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasHofman authored Sep 17, 2024
1 parent 33a7a83 commit 9c1c522
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit 9c1c522

Please sign in to comment.