Search in sources :

Example 1 with NoOpenAPIFilter

use of io.swagger.v3.core.filter.resources.NoOpenAPIFilter in project swagger-core by swagger-api.

the class SpecFilterTest method filterAwayOpenAPI.

@Test(description = "it should filter an openAPI object")
public void filterAwayOpenAPI() throws IOException {
    final OpenAPI openAPI = getOpenAPI(RESOURCE_PATH);
    final OpenAPI filtered = new SpecFilter().filter(openAPI, new NoOpenAPIFilter(), null, null, null);
    assertNull(filtered);
}
Also used : OpenAPI(io.swagger.v3.oas.models.OpenAPI) NoOpenAPIFilter(io.swagger.v3.core.filter.resources.NoOpenAPIFilter) Test(org.testng.annotations.Test)

Aggregations

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