components/src/test/java/eu/internetofus/common/components/models/WeNetUserProfileTest.java
/**
   * Check that not accept profiles with bad planned activities.
   *
   * @param vertx       event bus to use.
   * @param testContext context to test.
   *
   * @see WeNetUserProfile#validate(WeNetValidateContext)
   */
Check that not accept profiles with bad planned activities.
@param vertx       event bus to use.
@param testContext context to test.


Check that not accept profiles with bad planned activities . @param vertx event bus to use . @param testContext context to test .
@Test
  public void shouldNotBeValidWithABadPlannedActivities(final Vertx vertx, final VertxTestContext testContext) {
    final var model = new WeNetUserProfile();
    model.plannedActivities = new ArrayList<>();
    model.plannedActivities.add(new PlannedActivity());
    model.plannedActivities.add(new PlannedActivity());
    model.plannedActivities.add(new PlannedActivity());
    model.plannedActivities.get(1).attendees = new ArrayList<>();
    model.plannedActivities.get(1).attendees.add("undefined");
    assertIsNotValid(model, "plannedActivities[1].attendees[0]", new WeNetValidateContext("codePrefix", vertx),
        testContext);
  }
@ Test public void shouldNotBeValidWithABadPlannedActivities ( final Vertx vertx , final VertxTestContext testContext ) { final var model = new WeNetUserProfile ( ) ; model . plannedActivities = new ArrayList < > ( ) ; model . plannedActivities . add ( new PlannedActivity ( ) ) ; model . plannedActivities . add ( new PlannedActivity ( ) ) ; model . plannedActivities . add ( new PlannedActivity ( ) ) ; model . plannedActivities . get ( 1 ) . attendees = new ArrayList < > ( ) ; model . plannedActivities . get ( 1 ) . attendees . add ( "undefined" ) ; assertIsNotValid ( model , "plannedActivities[1].attendees[0]" , new WeNetValidateContext ( "codePrefix" , vertx ) , testContext ) ; }
Check that not accept profiles with bad planned activities.
Check that not accept profiles with bad planned activities .