@@ -0,0 +1,3150 @@
+package io.vertx.rxjava.ext.swagger.router;%0A%0Aimport io.swagger.models.Swagger;%0Aimport io.swagger.parser.SwaggerParser;%0A%0Aimport io.vertx.core.json.JsonArray;%0Aimport io.vertx.ext.unit.Async;%0Aimport io.vertx.ext.unit.TestContext;%0Aimport io.vertx.ext.unit.junit.VertxUnitRunner;%0Aimport io.vertx.rxjava.core.Vertx;%0Aimport io.vertx.rxjava.core.buffer.Buffer;%0Aimport io.vertx.rxjava.core.eventbus.EventBus;%0Aimport io.vertx.rxjava.core.file.FileSystem;%0Aimport io.vertx.rxjava.ext.web.Router;%0Aimport org.junit.BeforeClass;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0A%0Aimport java.nio.charset.Charset;%0A%0A@RunWith(VertxUnitRunner.class)%0Apublic class SwaggerRouterTest %7B%0A    private static Vertx vertx;%0A    private static EventBus eventBus;%0A    private static JsonArray definitions;%0A%0A    @BeforeClass%0A    public static void beforeClass(TestContext context) %7B%0A        Async async = context.async();%0A        vertx = Vertx.vertx();%0A        eventBus = vertx.eventBus();%0A%0A        FileSystem vertxFileSystem = vertx.fileSystem();%0A        vertxFileSystem.readFile(%22swaggerRouterTest.json%22, readFile -%3E %7B%0A            try %7B%0A                if (readFile.succeeded()) %7B%0A                    final Buffer buffer = readFile.result();%0A                    definitions = new JsonArray(buffer.toString(Charset.forName(%22utf-8%22).toString()));%0A                %7D else %7B%0A                    context.fail(readFile.cause());%0A                %7D%0A            %7D catch (Throwable cause) %7B%0A                context.fail(cause);%0A            %7D finally %7B%0A                async.complete();%0A            %7D%0A        %7D);%0A    %7D%0A%0A    @Test(expected = IllegalArgumentException.class)%0A    public void testIllegalPathParameterName() %7B%0A        String definition = definitions.getJsonObject(0).encode();%0A        Swagger swagger = new SwaggerParser().parse(definition);%0A        SwaggerRouter.swaggerRouter(Router.router(vertx), swagger, eventBus);%0A    %7D%0A%0A    @Test(expected = IllegalArgumentException.class)%0A    public void testEmptyPathParameterName() %7B%0A        String definition = definitions.getJsonObject(1).encode();%0A        Swagger swagger = new SwaggerParser().parse(definition);%0A        SwaggerRouter.swaggerRouter(Router.router(vertx), swagger, eventBus);%0A    %7D%0A%0A    @Test(expected = IllegalArgumentException.class)%0A    public void testNumericPathParameterName() %7B%0A        String definition = definitions.getJsonObject(2).encode();%0A        Swagger swagger = new SwaggerParser().parse(definition);%0A        SwaggerRouter.swaggerRouter(Router.router(vertx), swagger, eventBus);%0A    %7D%0A%0A    @Test(expected = IllegalArgumentException.class)%0A    public void testPathParameterNameStartsWithNumber() %7B%0A        String definition = definitions.getJsonObject(3).encode();%0A        Swagger swagger = new SwaggerParser().parse(definition);%0A        SwaggerRouter.swaggerRouter(Router.router(vertx), swagger, eventBus);%0A    %7D%0A%0A    @Test%0A    public void testAlphaNumericPathParameterName() %7B%0A        String definition = definitions.getJsonObject(4).encode();%0A        Swagger swagger = new SwaggerParser().parse(definition);%0A        SwaggerRouter.swaggerRouter(Router.router(vertx), swagger, eventBus);%0A    %7D%0A%0A%7D

Test added for SwaggerRouter Rx wrapper