components/src/test/java/eu/internetofus/common/components/models/CommunityProfileTest.java
/**
   * Check that an invalid member is not valid.
   *
   * @param vertx       event bus to use.
   * @param testContext context to test.
   *
   * @see CommunityProfile#validate(WeNetValidateContext)
   */
Check that an invalid member is not valid.
@param vertx       event bus to use.
@param testContext context to test.


Check that an invalid member is not valid . @param vertx event bus to use . @param testContext context to test .
@Test
  public void shouldNotBeValidWithInvalidMember(final Vertx vertx, final VertxTestContext testContext) {
    this.createModelExample(1, vertx, testContext).onSuccess(model -> {
      model.members.add(new CommunityMemberTest().createModelExample(2));
      assertIsNotValid(model, "members[1].userId", new WeNetValidateContext("codePrefix", vertx), testContext);
    });
  }
@ Test public void shouldNotBeValidWithInvalidMember ( final Vertx vertx , final VertxTestContext testContext ) { this . createModelExample ( 1 , vertx , testContext ) . onSuccess ( model -> { model . members . add ( new CommunityMemberTest ( ) . createModelExample ( 2 ) ) ; assertIsNotValid ( model , "members[1].userId" , new WeNetValidateContext ( "codePrefix" , vertx ) , testContext ) ; } ) ; }
Check that an invalid member is not valid.
Check that an invalid member is not valid .