components/src/test/java/eu/internetofus/common/components/personal_context_builder/WeNetPersonalContextBuilderTestCase.java
/**
   * Should obtain the closest user into a location.
   *
   * @param vertx       that contains the event bus to use.
   * @param testContext context over the tests.
   */
Should obtain the closest user into a location.
@param vertx       that contains the event bus to use.
@param testContext context over the tests.
Should obtain the closest user into a location . @param vertx that contains the event bus to use . @param testContext context over the tests .
@Test
  public void shouldObtainClosestUsers(final Vertx vertx, final VertxTestContext testContext) {
    testContext.assertComplete(this.createComponentProxy(vertx).obtainClosestUsersTo(0, 0, 3))
        .onSuccess(usersDistances -> testContext.verify(() -> {
          assertThat(usersDistances).isNotNull().hasSizeBetween(0, 3);
          testContext.completeNow();
        }));
  }
@ Test public void shouldObtainClosestUsers ( final Vertx vertx , final VertxTestContext testContext ) { testContext . assertComplete ( this . createComponentProxy ( vertx ) . obtainClosestUsersTo ( 0 , 0 , 3 ) ) . onSuccess ( usersDistances -> testContext . verify ( ( ) -> { assertThat ( usersDistances ) . isNotNull ( ) . hasSizeBetween ( 0 , 3 ) ; testContext . completeNow ( ) ; } ) ) ; }
Should obtain the closest user into a location.
Should obtain the closest user into a location .