0

Vertx の WebClient を使用して Post エンドポイントをテストしようとしていますが、ステータス コードとして常に 500 が返されます。誰でも私がここで間違っていることを教えてください:-

final String jsonBody = "{\"url\": \"https://www.google.se\"}";
    WebClient.create(vertx)
            .post(8080, "::1", "/service")
            .sendJson(
                jsonBody,
                response ->
                    testContext.verify(
                        () -> {
                          System.out.println(response.result().statusCode());
                          assertEquals("OK", response.result());
                        }));
4

2 に答える 2