Skip to content

Commit

Permalink
Make ModelConstructionTest, OASFactoryErrorTest activate OpenAPI (#657)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasHofman authored Sep 17, 2024
1 parent 3dd79d5 commit 394f23c
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 @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit 394f23c

Please sign in to comment.