Skip to content

Commit

Permalink
Fixed one test case based on the operating system in order to generat…
Browse files Browse the repository at this point in the history
…e the exception "URI path component is empty". Also, attempted to make tests run and pass both in windows and linux by changing the file separator if the OS is Windows.
  • Loading branch information
onurd86 committed Oct 16, 2023
1 parent ee74e2f commit d3a9993
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ class OpenAPILocalURLIssueTest {

// The file path provided for the OpenAPI Schema file://./src/test/resources/swagger/openapi_pet.json, ended up with the following error: URI authority component has undefined host
if (hostOs.contains("win")) {
Assertions.assertTrue(exception.message!!.contains("The file path provided for the OpenAPI Schema " +
"$urlToTest," + " ended up with the following error: URI authority component has undefined host"))
Assertions.assertTrue(exception.message!!.contains("The provided swagger file " +
"does not exist: $urlToTest"))
}
else {
Assertions.assertTrue(exception.message!!.contains("The file path provided for the OpenAPI Schema " +
Expand Down

0 comments on commit d3a9993

Please sign in to comment.