Skip to content

Commit

Permalink
add test of ObjectMapper failure on non parsable context
Browse files Browse the repository at this point in the history
  • Loading branch information
ktsypkina committed Feb 20, 2024
1 parent 5791339 commit dd16142
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@ class DefaultContextFactoryTest {
// OPEN API
//

@Test
fun `OPEN API -- not applicable when content is a String without any properties`() {
@Language("YAML")
val content = "Pets API".trimIndent()
val result = defaultContextFactory.parseOpenApiContext(content)

assertThat(result).resultsInNotApplicable()
}

@Test
fun `OPEN API -- not applicable when content does not contain the openapi property`() {
@Language("YAML")
Expand Down

0 comments on commit dd16142

Please sign in to comment.