dummy/src/test/java/eu/internetofus/wenet_dummy/persistence/DummiesRepositoryIT.java
/**
   * Verify that can store a dummy.
   *
   * @param vertx       event bus to use.
   * @param testContext context that executes the test.
   *
   * @see DummiesRepository#storeDummy(Dummy )
   */
Verify that can store a dummy.
@param vertx       event bus to use.
@param testContext context that executes the test.


Verify that can store a dummy . @param vertx event bus to use . @param testContext context that executes the test .
@Test
  public void shouldStoreDummyWithAnId(final Vertx vertx, final VertxTestContext testContext) {
    final var id = UUID.randomUUID().toString();
    final var dummy = new Dummy();
    dummy.id = id;
    testContext.assertComplete(DummiesRepository.createProxy(vertx).storeDummy(dummy))
        .onSuccess(storedDummy -> testContext.verify(() -> {
          assertThat(storedDummy).isNotNull();
          assertThat(storedDummy.id).isEqualTo(id);
          testContext.completeNow();
        }));
  }
@ Test public void shouldStoreDummyWithAnId ( final Vertx vertx , final VertxTestContext testContext ) { final var id = UUID . randomUUID ( ) . toString ( ) ; final var dummy = new Dummy ( ) ; dummy . id = id ; testContext . assertComplete ( DummiesRepository . createProxy ( vertx ) . storeDummy ( dummy ) ) . onSuccess ( storedDummy -> testContext . verify ( ( ) -> { assertThat ( storedDummy ) . isNotNull ( ) ; assertThat ( storedDummy . id ) . isEqualTo ( id ) ; testContext . completeNow ( ) ; } ) ) ; }
Verify that can store a dummy.
Verify that can store a dummy .