dummy/src/test/java/eu/internetofus/wenet_dummy/service/WeNetDummyIT.java
/**
   * Should create dummy model.
   *
   * @param vertx       that contains the event bus to use.
   * @param testContext context over the tests.
   */
Should create dummy model.
@param vertx       that contains the event bus to use.
@param testContext context over the tests.
Should create dummy model . @param vertx that contains the event bus to use . @param testContext context over the tests .
@Test
  public void shouldCreateDummy(final Vertx vertx, final VertxTestContext testContext) {
    final var model = new DummyTest().createModelExample(1);
    model.id = null;
    testContext.assertComplete(WeNetDummy.createProxy(vertx).createDummy(model))
        .onSuccess(posted -> testContext.verify(() -> {
          assertThat(posted).isNotEqualTo(model);
          model.id = posted.id;
          assertThat(posted).isEqualTo(model);
          testContext.completeNow();
        }));
  }
@ Test public void shouldCreateDummy ( final Vertx vertx , final VertxTestContext testContext ) { final var model = new DummyTest ( ) . createModelExample ( 1 ) ; model . id = null ; testContext . assertComplete ( WeNetDummy . createProxy ( vertx ) . createDummy ( model ) ) . onSuccess ( posted -> testContext . verify ( ( ) -> { assertThat ( posted ) . isNotEqualTo ( model ) ; model . id = posted . id ; assertThat ( posted ) . isEqualTo ( model ) ; testContext . completeNow ( ) ; } ) ) ; }
Should create dummy model.
Should create dummy model .