use of io.swagger.v3.core.filter.resources.ChangeGetOperationsFilter in project swagger-core by swagger-api.
the class SpecFilterTest method changeGetResources.
@Test(description = "it should change away with a new operation")
public void changeGetResources() throws IOException {
final OpenAPI openAPI = getOpenAPI(RESOURCE_PATH);
OpenAPI filter = new SpecFilter().filter(openAPI, new ChangeGetOperationsFilter(), null, null, null);
assertOperations(filter, CHANGED_OPERATION_ID, CHANGED_OPERATION_DESCRIPTION);
}
Aggregations