components/src/test/java/eu/internetofus/common/components/social_context_builder/WeNetSocialContextBuilderTestCase.java
/**
   * Should social notification profile update.
   *
   * @param vertx       that contains the event bus to use.
   * @param testContext context over the tests.
   */
Should social notification profile update.
@param vertx       that contains the event bus to use.
@param testContext context over the tests.
Should social notification profile update . @param vertx that contains the event bus to use . @param testContext context over the tests .
@Test
  public void shouldSocialNotificationProfileUpdate(final Vertx vertx, final VertxTestContext testContext) {
    final var userId = UUID.randomUUID().toString();
    final var notification = new ProfileUpdateNotification();
    notification.updatedFieldNames = new HashSet<String>();
    notification.updatedFieldNames.add("name");
    notification.updatedFieldNames.add("occupation");
    notification.updatedFieldNames.add("nationality");
    this.createComponentProxy(vertx).socialNotificationProfileUpdate(userId, notification)
        .onComplete(testContext.succeeding(any -> testContext.completeNow()));
  }
@ Test public void shouldSocialNotificationProfileUpdate ( final Vertx vertx , final VertxTestContext testContext ) { final var userId = UUID . randomUUID ( ) . toString ( ) ; final var notification = new ProfileUpdateNotification ( ) ; notification . updatedFieldNames = new HashSet < String > ( ) ; notification . updatedFieldNames . add ( "name" ) ; notification . updatedFieldNames . add ( "occupation" ) ; notification . updatedFieldNames . add ( "nationality" ) ; this . createComponentProxy ( vertx ) . socialNotificationProfileUpdate ( userId , notification ) . onComplete ( testContext . succeeding ( any -> testContext . completeNow ( ) ) ) ; }
Should social notification profile update.
Should social notification profile update .