components/src/test/java/eu/internetofus/common/components/task_manager/WeNetTaskManagerTestCase.java
/**
   * Should get empty tasks.
   *
   * @param vertx       that contains the event bus to use.
   * @param testContext context over the tests.
   */
Should get empty tasks.
@param vertx       that contains the event bus to use.
@param testContext context over the tests.
Should get empty tasks . @param vertx that contains the event bus to use . @param testContext context over the tests .
@Test
  public void shouldGetEmptyTasksPage(final Vertx vertx, final VertxTestContext testContext) {
    testContext.assertComplete(WeNetTaskManager.createProxy(vertx).getTasksPage("Undefined appId",
        "Undefined requesterId", "Undefined taskTypeId", "Undefined name", "undefined description", 0l, 1000l, 1000l,
        2000l, true, 1500l, 2500l, "appId,-taskTypeId", 0, 10)).onSuccess(page -> testContext.verify(() -> {
          assertThat(page).isNotNull();
          assertThat(page.offset).isEqualTo(0);
          assertThat(page.total).isEqualTo(0);
          assertThat(page.tasks).isNull();
          testContext.completeNow();
        }));
  }
@ Test public void shouldGetEmptyTasksPage ( final Vertx vertx , final VertxTestContext testContext ) { testContext . assertComplete ( WeNetTaskManager . createProxy ( vertx ) . getTasksPage ( "Undefined appId" , "Undefined requesterId" , "Undefined taskTypeId" , "Undefined name" , "undefined description" , 0l , 1000l , 1000l , 2000l , true , 1500l , 2500l , "appId,-taskTypeId" , 0 , 10 ) ) . onSuccess ( page -> testContext . verify ( ( ) -> { assertThat ( page ) . isNotNull ( ) ; assertThat ( page . offset ) . isEqualTo ( 0 ) ; assertThat ( page . total ) . isEqualTo ( 0 ) ; assertThat ( page . tasks ) . isNull ( ) ; testContext . completeNow ( ) ; } ) ) ; }
Should get empty tasks.
Should get empty tasks .