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


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