openApi() method not found
Issue #200
resolved
Hi Team,
I am trying to run below method:
@Test
public void testGetValidPet() {
this.mockMvc
.perform(post("/hello/bob"))
.andExpect(openApi().isValid("api.json"));
}
But openAPI() method is not available. Has it been removed from latest version?
Comments (2)
-
-
- changed status to resolved
- Log in to comment
Hi, that method is still available on the
com.atlassian.oai.validator.mockmvc.OpenApiValidationMatchers
class. There is working example at SwaggerValidatorTestExample.java