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