diff --git a/src/test/java/net/ximatai/muyun/gateway/TestUpstream.java b/src/test/java/net/ximatai/muyun/gateway/TestUpstream.java index 0356b78..8e4ac4d 100644 --- a/src/test/java/net/ximatai/muyun/gateway/TestUpstream.java +++ b/src/test/java/net/ximatai/muyun/gateway/TestUpstream.java @@ -30,17 +30,11 @@ public TestUpstream() { CompletableFuture completableFuture = new CompletableFuture<>(); Router router = Router.router(vertx); - router.get("/").handler(routingContext -> { - routingContext.response().setStatusCode(200).end("Hello, World!"); - }); + router.get("/").handler(routingContext -> routingContext.response().setStatusCode(200).end("Hello, World!")); - router.get("/test1").handler(routingContext -> { - routingContext.response().setStatusCode(200).end("Hello, World! TEST1!"); - }); + router.get("/test1").handler(routingContext -> routingContext.response().setStatusCode(200).end("Hello, World! TEST1!")); - router.get("/test2").handler(routingContext -> { - routingContext.response().setStatusCode(200).end("Hello, World! TEST2!"); - }); + router.get("/test2").handler(routingContext -> routingContext.response().setStatusCode(200).end("Hello, World! TEST2!")); vertx.createHttpServer() .requestHandler(router)