LicenseInfoComponent extends MarkupComponent<LicenseInfoComponent.Parameters> { public LicenseInfoComponent(Swagger2MarkupConverter.SwaggerContext context) { super(context); } LicenseInfoComponent(Swagger2MarkupConverter.SwaggerContext context); static LicenseInfoComponent.Parameters parameters(Info info,
                                                             int titleLevel); @Override MarkupDocBuilder apply(MarkupDocBuilder markupDocBuilder, Parameters params);  }
@Test public void testLicenseInfoComponent() throws URISyntaxException { Info info = new Info() .license(new License().name("Apache 2.0").url("http: .termsOfService("Bla bla bla"); Swagger2MarkupConverter.SwaggerContext context = createContext(); MarkupDocBuilder markupDocBuilder = context.createMarkupDocBuilder(); markupDocBuilder = new LicenseInfoComponent(context).apply(markupDocBuilder, LicenseInfoComponent.parameters(info, OverviewDocument.SECTION_TITLE_LEVEL)); markupDocBuilder.writeToFileWithoutExtension(outputDirectory, StandardCharsets.UTF_8); Path expectedFile = getExpectedFile(COMPONENT_NAME); DiffUtils.assertThatFileIsEqual(expectedFile, outputDirectory, getReportName(COMPONENT_NAME)); }