dummy/src/test/java/eu/internetofus/wenet_dummy/api/dummies/DummiesIT.java
/**
   * Should fail post bad dummy model.
   *
   * @param vertx       that contains the event bus to use.
   * @param client      to use.
   * @param testContext context over the tests.
   */
Should fail post bad dummy model.
@param vertx       that contains the event bus to use.
@param client      to use.
@param testContext context over the tests.
Should fail post bad dummy model . @param vertx that contains the event bus to use . @param client to use . @param testContext context over the tests .
@Test
  public void shouldFailPostBadDummymodel(Vertx vertx, final WebClient client, final VertxTestContext testContext) {
    testRequest(client, HttpMethod.POST, Dummies.PATH).expect(res -> {
      assertThat(res.statusCode()).isEqualTo(Status.BAD_REQUEST.getStatusCode());
      final var error = assertThatBodyIs(ErrorMessage.class, res);
      assertThat(error).isNotNull();
    }).sendJson(new JsonObject().put("undefined", "undefined"), testContext);
  }
@ Test public void shouldFailPostBadDummymodel ( Vertx vertx , final WebClient client , final VertxTestContext testContext ) { testRequest ( client , HttpMethod . POST , Dummies . PATH ) . expect ( res -> { assertThat ( res . statusCode ( ) ) . isEqualTo ( Status . BAD_REQUEST . getStatusCode ( ) ) ; final var error = assertThatBodyIs ( ErrorMessage . class , res ) ; assertThat ( error ) . isNotNull ( ) ; } ) . sendJson ( new JsonObject ( ) . put ( "undefined" , "undefined" ) , testContext ) ; }
Should fail post bad dummy model.
Should fail post bad dummy model .