Search in sources :

Example 1 with ChangeGetOperationsFilter

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);
}
Also used : ChangeGetOperationsFilter(io.swagger.v3.core.filter.resources.ChangeGetOperationsFilter) OpenAPI(io.swagger.v3.oas.models.OpenAPI) Test(org.testng.annotations.Test)

Aggregations

ChangeGetOperationsFilter (io.swagger.v3.core.filter.resources.ChangeGetOperationsFilter)1 OpenAPI (io.swagger.v3.oas.models.OpenAPI)1 Test (org.testng.annotations.Test)1