Skip to content

Commit

Permalink
add expected violation to test assert
Browse files Browse the repository at this point in the history
  • Loading branch information
ktsypkina committed Mar 4, 2024
1 parent ff94ac5 commit 083810f
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@ class DefaultContextFactoryTest {
openapi: {la: 3.0.0}
"""
val result = defaultContextFactory.parseOpenApiContext(content)
assertThat(result).resultsInParsedWithErrors()
assertThat(result).resultsInErrors(
Violation(
description = "attribute openapi is not of type `string`",
pointer = JsonPointer.empty()
)
)
}

@Test
Expand Down

0 comments on commit 083810f

Please sign in to comment.