@@ -0,0 +1,1874 @@
+package com.bitmonlab.osiris.api.map.swagger;%0D%0A%0D%0Aimport java.io.File;%0D%0Aimport java.io.IOException;%0D%0Aimport java.util.Arrays;%0D%0A%0D%0Aimport io.github.robwin.markup.builder.MarkupLanguage;%0D%0Aimport io.github.robwin.swagger2markup.Swagger2MarkupConverter;%0D%0A%0D%0Aimport org.junit.Ignore;%0D%0Aimport org.junit.Test;%0D%0Aimport org.junit.runner.RunWith;%0D%0Aimport org.mockito.runners.MockitoJUnitRunner;%0D%0A%0D%0A%0D%0Aimport static org.junit.Assert.assertTrue;%0D%0A%0D%0A%0D%0A@RunWith(MockitoJUnitRunner.class)%0D%0Apublic class Swagger2MarkupTest %7B%0D%0A%0D%0A    @Test%0D%0A    @Ignore public void convertRemoteSwaggerToAsciiDoc() throws IOException %7B%0D%0A        // Remote Swagger source%0D%0A        // Default is AsciiDoc%0D%0A        Swagger2MarkupConverter.from(%22http://localhost:4024/api-docs%22).build().intoFolder(%22src/docs/asciidoc/generated%22);    %0D%0A%0D%0A        // Then validate that three AsciiDoc files have been created%0D%0A        String%5B%5D files = new File(%22src/docs/asciidoc/generated%22).list();%0D%0A        %0D%0A        assertTrue(Arrays.asList(files).contains(%22definitions.adoc%22));%0D%0A        assertTrue(Arrays.asList(files).contains(%22overview.adoc%22));%0D%0A        assertTrue(Arrays.asList(files).contains(%22paths.adoc%22));       %0D%0A     %0D%0A    %7D%0D%0A%0D%0A    @Test%0D%0A    @Ignore public void convertRemoteSwaggerToMarkdown() throws IOException %7B%0D%0A        // Remote Swagger source%0D%0A        // Markdown%0D%0A        Swagger2MarkupConverter.from(%22http://localhost:4024/api-docs%22).withMarkupLanguage(MarkupLanguage.MARKDOWN).build().intoFolder(%22src/docs/markdown/generated%22);%0D%0A%0D%0A        // Then validate that three Markdown files have been created%0D%0A        String%5B%5D files = new File(%22src/docs/markdown/generated%22).list();%0D%0A        %0D%0A        assertTrue(Arrays.asList(files).contains(%22definitions.md%22));%0D%0A        assertTrue(Arrays.asList(files).contains(%22overview.md%22));%0D%0A        assertTrue(Arrays.asList(files).contains(%22paths.md%22));        %0D%0A        %0D%0A    %7D%0D%0A%7D%0D%0A

Test to create static documentation