use of io.swagger.servlet.ReaderContext in project swagger-core by swagger-api.
the class TagsTest method applyTagsTest1.
@Test(dataProvider = "resourceWithAnnotations")
public void applyTagsTest1(String methodName, List<String> expected) throws NoSuchMethodException {
final Operation operation = new Operation();
final ReaderContext context = createDefaultContext();
extension.applyTags(context, operation, findMethod(context, methodName));
Assert.assertEquals(operation.getTags(), expected);
}
Aggregations