From 4ac039647122c6aa0358e4a3e37aaea12ae700f6 Mon Sep 17 00:00:00 2001 From: Liu Rui Date: Sun, 8 Dec 2024 07:50:51 +0800 Subject: [PATCH] =?UTF-8?q?chore-=E6=94=B9=E8=BF=9B=E4=B8=80=E4=BA=9B?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E5=86=99=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/net/ximatai/muyun/gateway/TestUpstream.java | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) 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)