components/src/test/java/eu/internetofus/common/components/social_context_builder/WeNetSocialContextBuilderTestCase.java
/**
   * Should update preferences for user on task.
   *
   * @param vertx       that contains the event bus to use.
   * @param testContext context over the tests.
   */
Should update preferences for user on task.
@param vertx       that contains the event bus to use.
@param testContext context over the tests.
Should update preferences for user on task . @param vertx that contains the event bus to use . @param testContext context over the tests .
@Test
  public void shouldUpdatePreferencesForUserOnTask(final Vertx vertx, final VertxTestContext testContext) {
    final var userId = UUID.randomUUID().toString();
    final var taskId = UUID.randomUUID().toString();
    final var volunteers = new ArrayList<String>();
    testContext
        .assertComplete(this.createComponentProxy(vertx).postSocialPreferencesForUserOnTask(userId, taskId, volunteers))
        .onSuccess(updated -> testContext.verify(() -> {
          assertThat(updated).isNotNull();
          testContext.completeNow();
        }));
  }
@ Test public void shouldUpdatePreferencesForUserOnTask ( final Vertx vertx , final VertxTestContext testContext ) { final var userId = UUID . randomUUID ( ) . toString ( ) ; final var taskId = UUID . randomUUID ( ) . toString ( ) ; final var volunteers = new ArrayList < String > ( ) ; testContext . assertComplete ( this . createComponentProxy ( vertx ) . postSocialPreferencesForUserOnTask ( userId , taskId , volunteers ) ) . onSuccess ( updated -> testContext . verify ( ( ) -> { assertThat ( updated ) . isNotNull ( ) ; testContext . completeNow ( ) ; } ) ) ; }
Should update preferences for user on task.
Should update preferences for user on task .