components/src/test/java/eu/internetofus/common/components/task_manager/WeNetTaskManagerTestCase.java
/**
   * Should get empty task types.
   *
   * @param vertx       that contains the event bus to use.
   * @param testContext context over the tests.
   */
Should get empty task types.
@param vertx       that contains the event bus to use.
@param testContext context over the tests.
Should get empty task types . @param vertx that contains the event bus to use . @param testContext context over the tests .
@Test
  public void shouldGetEmptyTaskTypesPage(final Vertx vertx, final VertxTestContext testContext) {
    testContext
        .assertComplete(WeNetTaskManager.createProxy(vertx).getTaskTypesPage("Undefined name", "Undefined description",
            "Undefined keywords," + UUID.randomUUID().toString(), "-name,description", 0, 10))
        .onSuccess(page -> testContext.verify(() -> {
          assertThat(page).isNotNull();
          assertThat(page.offset).isEqualTo(0);
          assertThat(page.total).isEqualTo(0);
          assertThat(page.taskTypes).isNull();
          testContext.completeNow();
        }));
  }
@ Test public void shouldGetEmptyTaskTypesPage ( final Vertx vertx , final VertxTestContext testContext ) { testContext . assertComplete ( WeNetTaskManager . createProxy ( vertx ) . getTaskTypesPage ( "Undefined name" , "Undefined description" , "Undefined keywords," + UUID . randomUUID ( ) . toString ( ) , "-name,description" , 0 , 10 ) ) . onSuccess ( page -> testContext . verify ( ( ) -> { assertThat ( page ) . isNotNull ( ) ; assertThat ( page . offset ) . isEqualTo ( 0 ) ; assertThat ( page . total ) . isEqualTo ( 0 ) ; assertThat ( page . taskTypes ) . isNull ( ) ; testContext . completeNow ( ) ; } ) ) ; }
Should get empty task types.
Should get empty task types .