SwaggerRouter { private SwaggerRouter() { throw new IllegalStateException("Utility class"); } private  SwaggerRouter(); static Router swaggerRouter(Router baseRouter, Swagger swagger, EventBus eventBus); static Router swaggerRouter(Router baseRouter, Swagger swagger, EventBus eventBus, ServiceIdResolver serviceIdResolver); static Router swaggerRouter(Router baseRouter, Swagger swagger, EventBus eventBus, ServiceIdResolver serviceIdResolver, Function<RoutingContext, DeliveryOptions> configureMessage);  }
@Test(expected = IllegalArgumentException.class) public void testIllegalPathParameterName() { String definition = definitions.getJsonObject(0).encode(); Swagger swagger = new SwaggerParser().parse(definition); SwaggerRouter.swaggerRouter(Router.router(vertx), swagger, eventBus); }
@Test(expected = IllegalArgumentException.class) public void testEmptyPathParameterName() { String definition = definitions.getJsonObject(1).encode(); Swagger swagger = new SwaggerParser().parse(definition); SwaggerRouter.swaggerRouter(Router.router(vertx), swagger, eventBus); }
@Test(expected = IllegalArgumentException.class) public void testNumericPathParameterName() { String definition = definitions.getJsonObject(2).encode(); Swagger swagger = new SwaggerParser().parse(definition); SwaggerRouter.swaggerRouter(Router.router(vertx), swagger, eventBus); }
@Test(expected = IllegalArgumentException.class) public void testPathParameterNameStartsWithNumber() { String definition = definitions.getJsonObject(3).encode(); Swagger swagger = new SwaggerParser().parse(definition); SwaggerRouter.swaggerRouter(Router.router(vertx), swagger, eventBus); }
@Test public void testAlphaNumericPathParameterName() { String definition = definitions.getJsonObject(4).encode(); Swagger swagger = new SwaggerParser().parse(definition); SwaggerRouter.swaggerRouter(Router.router(vertx), swagger, eventBus); }