vertx/src/test/java/eu/internetofus/common/vertx/ComponentClientTest.java
/**
   * Consumed a no content success because the response is empty.
   *
   * @param response    to process.
   * @param testContext context that manage the test.
   *
   * @see ComponentClient#toServiceException(io.vertx.ext.web.client.HttpResponse)
   */
Consumed a no content success because the response is empty.
@param response    to process.
@param testContext context that manage the test.


Consumed a no content success because the response is empty . @param response to process . @param testContext context that manage the test .
@Test
  public void shouldNoContentConsumerSuccess(@Mock final HttpResponse<Buffer> response,
      final VertxTestContext testContext) {
    final var service = new ComponentClient(null, null);
    final var code = Status.NO_CONTENT.getStatusCode();
    doReturn(code).when(response).statusCode();
    service.noContentConsumer("actionId").accept(testContext.succeeding(empty -> testContext.completeNow()), response);
  }
@ Test public void shouldNoContentConsumerSuccess ( @ Mock final HttpResponse < Buffer > response , final VertxTestContext testContext ) { final var service = new ComponentClient ( null , null ) ; final var code = Status . NO_CONTENT . getStatusCode ( ) ; doReturn ( code ) . when ( response ) . statusCode ( ) ; service . noContentConsumer ( "actionId" ) . accept ( testContext . succeeding ( empty -> testContext . completeNow ( ) ) , response ) ; }
Consumed a no content success because the response is empty.
Consumed a no content success because the response is empty .