components/src/test/java/eu/internetofus/common/components/profile_manager/WeNetProfileManagerTestCase.java
/**
   * Should return an empty profiles page.
   *
   * @param vertx       that contains the event bus to use.
   * @param testContext context over the tests.
   */
Should return an empty profiles page.
@param vertx       that contains the event bus to use.
@param testContext context over the tests.
Should return an empty profiles page . @param vertx that contains the event bus to use . @param testContext context over the tests .
@Test
  public void shouldReturnEmptyCommunityProfilesPage(final Vertx vertx, final VertxTestContext testContext) {
    final var appId = UUID.randomUUID().toString();
    testContext.assertComplete(WeNetProfileManager.createProxy(vertx).retrieveCommunityProfilesPage(appId, null, null,
        null, null, null, 0, 100)).onSuccess(page -> testContext.verify(() -> {
          assertThat(page).isNotNull();
          assertThat(page.offset).isEqualTo(0);
          assertThat(page.total).isEqualTo(0);
          assertThat(page.communities).isNull();
          testContext.assertComplete(WeNetProfileManager.createProxy(vertx).retrieveCommunityProfilesPage(appId, "name",
              "description", "keywords", "members", "name", 0, 100)).onSuccess(page2 -> testContext.verify(() -> {
                assertThat(page).isEqualTo(page2);
                testContext.completeNow();
              }));
        }));
  }
@ Test public void shouldReturnEmptyCommunityProfilesPage ( final Vertx vertx , final VertxTestContext testContext ) { final var appId = UUID . randomUUID ( ) . toString ( ) ; testContext . assertComplete ( WeNetProfileManager . createProxy ( vertx ) . retrieveCommunityProfilesPage ( appId , null , null , null , null , null , 0 , 100 ) ) . onSuccess ( page -> testContext . verify ( ( ) -> { assertThat ( page ) . isNotNull ( ) ; assertThat ( page . offset ) . isEqualTo ( 0 ) ; assertThat ( page . total ) . isEqualTo ( 0 ) ; assertThat ( page . communities ) . isNull ( ) ; testContext . assertComplete ( WeNetProfileManager . createProxy ( vertx ) . retrieveCommunityProfilesPage ( appId , "name" , "description" , "keywords" , "members" , "name" , 0 , 100 ) ) . onSuccess ( page2 -> testContext . verify ( ( ) -> { assertThat ( page ) . isEqualTo ( page2 ) ; testContext . completeNow ( ) ; } ) ) ; } ) ) ; }
Should return an empty profiles page.
Should return an empty profiles page .