components/src/test/java/eu/internetofus/common/components/interaction_protocol_engine/WeNetInteractionProtocolEngineTestCase.java
/**
   * Should do a task transaction.
   *
   * @param vertx       that contains the event bus to use.
   * @param testContext context over the tests.
   */
Should do a task transaction.
@param vertx       that contains the event bus to use.
@param testContext context over the tests.
Should do a task transaction . @param vertx that contains the event bus to use . @param testContext context over the tests .
@Test
  public void shouldDoTaskTransaction(final Vertx vertx, final VertxTestContext testContext) {
    testContext.assertComplete(new TaskTransactionTest().createModelExample(1, vertx, testContext))
        .onSuccess(taskTransaction -> {
          testContext.assertComplete(this.createComponentProxy(vertx).doTransaction(taskTransaction))
              .onSuccess(done -> testContext.verify(() -> {
                assertThat(taskTransaction).isEqualTo(done);
                testContext.completeNow();
              }));
        });
  }
@ Test public void shouldDoTaskTransaction ( final Vertx vertx , final VertxTestContext testContext ) { testContext . assertComplete ( new TaskTransactionTest ( ) . createModelExample ( 1 , vertx , testContext ) ) . onSuccess ( taskTransaction -> { testContext . assertComplete ( this . createComponentProxy ( vertx ) . doTransaction ( taskTransaction ) ) . onSuccess ( done -> testContext . verify ( ( ) -> { assertThat ( taskTransaction ) . isEqualTo ( done ) ; testContext . completeNow ( ) ; } ) ) ; } ) ; }
Should do a task transaction.
Should do a task transaction .