protocols/src/test/java/eu/internetofus/common/protocols/Ask4HelpV2ProtocolWithAllFiltersITC.java
/**
   * Store the location of the users.
   *
   * @param vertx       event bus to use.
   * @param testContext context to do the test.
   */
Store the location of the users.
@param vertx       event bus to use.
@param testContext context to do the test.
Store the location of the users . @param vertx event bus to use . @param testContext context to do the test .
@Test
  @Order(5)
  public void shouldStoreUserLocations(final Vertx vertx, final VertxTestContext testContext) {
    this.assertLastSuccessfulTestWas(4, testContext);
    Future<?> future = Future.succeededFuture();
    final var max = this.users.size();
    for (var i = 0; i < max; i++) {
      final var userId = this.users.get(i).id;
      final var location = new UserLocation();
      location.userId = userId;
      location.latitude = 0.3 * i;
      location.longitude = 0.3 * i;
      future = future
          .compose(ignored -> WeNetPersonalContextBuilderSimulator.createProxy(vertx).addUserLocation(location));
    }
    future.onComplete(testContext.succeeding(ignored -> this.assertSuccessfulCompleted(testContext)));
  }
@ Test @ Order ( 5 ) public void shouldStoreUserLocations ( final Vertx vertx , final VertxTestContext testContext ) { this . assertLastSuccessfulTestWas ( 4 , testContext ) ; Future < ? > future = Future . succeededFuture ( ) ; final var max = this . users . size ( ) ; for ( var i = 0 ; i < max ; i ++ ) { final var userId = this . users . get ( i ) . id ; final var location = new UserLocation ( ) ; location . userId = userId ; location . latitude = 0.3 * i ; location . longitude = 0.3 * i ; future = future . compose ( ignored -> WeNetPersonalContextBuilderSimulator . createProxy ( vertx ) . addUserLocation ( location ) ) ; } future . onComplete ( testContext . succeeding ( ignored -> this . assertSuccessfulCompleted ( testContext ) ) ) ; }
Store the location of the users.
Store the location of the users .