@Test public void testTagsComponent() throws URISyntaxException { List<Tag> tags = new ArrayList<>(); tags.add(new Tag().name("Tag1").description("description")); tags.add(new Tag().name("Tag2")); Swagger2MarkupConverter.SwaggerContext context = createContext(); MarkupDocBuilder markupDocBuilder = context.createMarkupDocBuilder(); markupDocBuilder = new TagsComponent(context).apply(markupDocBuilder, TagsComponent.parameters(tags, OverviewDocument.SECTION_TITLE_LEVEL)); markupDocBuilder.writeToFileWithoutExtension(outputDirectory, StandardCharsets.UTF_8); Path expectedFile = getExpectedFile(COMPONENT_NAME); DiffUtils.assertThatFileIsEqual(expectedFile, outputDirectory, getReportName(COMPONENT_NAME)); }
public TagsComponent(Swagger2MarkupConverter.SwaggerContext context) { super(context); }
TagsComponent extends MarkupComponent<TagsComponent.Parameters> { public TagsComponent(Swagger2MarkupConverter.SwaggerContext context) { super(context); } }
TagsComponent extends MarkupComponent<TagsComponent.Parameters> { public TagsComponent(Swagger2MarkupConverter.SwaggerContext context) { super(context); } TagsComponent(Swagger2MarkupConverter.SwaggerContext context); }
TagsComponent extends MarkupComponent<TagsComponent.Parameters> { public TagsComponent(Swagger2MarkupConverter.SwaggerContext context) { super(context); } TagsComponent(Swagger2MarkupConverter.SwaggerContext context); static TagsComponent.Parameters parameters(List<Tag> tags,
                                                      int titleLevel); @Override MarkupDocBuilder apply(MarkupDocBuilder markupDocBuilder, Parameters params); }
TagsComponent extends MarkupComponent<TagsComponent.Parameters> { public TagsComponent(Swagger2MarkupConverter.SwaggerContext context) { super(context); } TagsComponent(Swagger2MarkupConverter.SwaggerContext context); static TagsComponent.Parameters parameters(List<Tag> tags,
                                                      int titleLevel); @Override MarkupDocBuilder apply(MarkupDocBuilder markupDocBuilder, Parameters params);  }