UriSchemeComponent extends MarkupComponent<UriSchemeComponent.Parameters> { public UriSchemeComponent(Swagger2MarkupConverter.SwaggerContext context) { super(context); } UriSchemeComponent(Swagger2MarkupConverter.SwaggerContext context); static UriSchemeComponent.Parameters parameters(Swagger swagger, int titleLevel); @Override MarkupDocBuilder apply(MarkupDocBuilder markupDocBuilder, Parameters params);  }
@Test public void testUriSchemeComponent() throws URISyntaxException { Swagger swagger = new Swagger().host("http: swagger.addScheme(Scheme.HTTP); swagger.addScheme(Scheme.HTTPS); Swagger2MarkupConverter.SwaggerContext context = createContext(); MarkupDocBuilder markupDocBuilder = context.createMarkupDocBuilder(); markupDocBuilder = new UriSchemeComponent(context).apply(markupDocBuilder, UriSchemeComponent.parameters(swagger, OverviewDocument.SECTION_TITLE_LEVEL)); markupDocBuilder.writeToFileWithoutExtension(outputDirectory, StandardCharsets.UTF_8); Path expectedFile = getExpectedFile(COMPONENT_NAME); DiffUtils.assertThatFileIsEqual(expectedFile, outputDirectory, getReportName(COMPONENT_NAME)); }