@Test public void testConsumesComponent() throws URISyntaxException { List<String> consumes = new ArrayList<>(); consumes.add("application/json"); consumes.add("application/xml"); Swagger2MarkupConverter.SwaggerContext context = createContext(); MarkupDocBuilder markupDocBuilder = context.createMarkupDocBuilder(); markupDocBuilder = new ConsumesComponent(context).apply(markupDocBuilder, ConsumesComponent.parameters( consumes, OverviewDocument.SECTION_TITLE_LEVEL)); markupDocBuilder.writeToFileWithoutExtension(outputDirectory, StandardCharsets.UTF_8); Path expectedFile = getExpectedFile(COMPONENT_NAME); DiffUtils.assertThatFileIsEqual(expectedFile, outputDirectory, getReportName(COMPONENT_NAME)); }
public ConsumesComponent(Swagger2MarkupConverter.SwaggerContext context) { super(context); }
ConsumesComponent extends MarkupComponent<ConsumesComponent.Parameters> { public ConsumesComponent(Swagger2MarkupConverter.SwaggerContext context) { super(context); } }
ConsumesComponent extends MarkupComponent<ConsumesComponent.Parameters> { public ConsumesComponent(Swagger2MarkupConverter.SwaggerContext context) { super(context); } ConsumesComponent(Swagger2MarkupConverter.SwaggerContext context); }
ConsumesComponent extends MarkupComponent<ConsumesComponent.Parameters> { public ConsumesComponent(Swagger2MarkupConverter.SwaggerContext context) { super(context); } ConsumesComponent(Swagger2MarkupConverter.SwaggerContext context); static ConsumesComponent.Parameters parameters(List<String> consumes,
                                                          int titleLevel); @Override MarkupDocBuilder apply(MarkupDocBuilder markupDocBuilder, Parameters params); }
ConsumesComponent extends MarkupComponent<ConsumesComponent.Parameters> { public ConsumesComponent(Swagger2MarkupConverter.SwaggerContext context) { super(context); } ConsumesComponent(Swagger2MarkupConverter.SwaggerContext context); static ConsumesComponent.Parameters parameters(List<String> consumes,
                                                          int titleLevel); @Override MarkupDocBuilder apply(MarkupDocBuilder markupDocBuilder, Parameters params);  }