VersionInfoComponent extends MarkupComponent<VersionInfoComponent.Parameters> { public VersionInfoComponent(Swagger2MarkupConverter.SwaggerContext context) { super(context); } VersionInfoComponent(Swagger2MarkupConverter.SwaggerContext context); static VersionInfoComponent.Parameters parameters(Info info,
                                                             int titleLevel); @Override MarkupDocBuilder apply(MarkupDocBuilder markupDocBuilder, Parameters params);  }
@Test public void testVersionInfoComponent() throws URISyntaxException { Info info = new Info().version("1.0"); Swagger2MarkupConverter.SwaggerContext context = createContext(); MarkupDocBuilder markupDocBuilder = context.createMarkupDocBuilder(); markupDocBuilder = new VersionInfoComponent(context).apply(markupDocBuilder, VersionInfoComponent.parameters(info, OverviewDocument.SECTION_TITLE_LEVEL)); markupDocBuilder.writeToFileWithoutExtension(outputDirectory, StandardCharsets.UTF_8); Path expectedFile = getExpectedFile(COMPONENT_NAME); DiffUtils.assertThatFileIsEqual(expectedFile, outputDirectory, getReportName(COMPONENT_NAME)); }