Search in sources :

Example 1 with SwaggerParserExtension

use of io.swagger.parser.SwaggerParserExtension in project swagger-parser by swagger-api.

the class ParserExtensionsTest method readAllExtensions.

@Test
public void readAllExtensions() throws Exception {
    SwaggerParser parser = new SwaggerParser();
    List<SwaggerParserExtension> extensions = parser.getExtensions();
    assertTrue(extensions.size() == 2, "Didn't find 2 extensions as expected");
}
Also used : SwaggerParser(io.swagger.parser.SwaggerParser) SwaggerParserExtension(io.swagger.parser.SwaggerParserExtension) Test(org.testng.annotations.Test)

Aggregations

SwaggerParser (io.swagger.parser.SwaggerParser)1 SwaggerParserExtension (io.swagger.parser.SwaggerParserExtension)1 Test (org.testng.annotations.Test)1