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 shouldEmptyAttenderWillRemoved(final Vertx vertx, final VertxTestContext testContext) {
    final var model = new PlannedActivity();
    model.attendees = new ArrayList<>();
    model.attendees.add(null);
    model.attendees.add(null);
    model.attendees.add(null);
    assertIsValid(model, new WeNetValidateContext("codePrefix", vertx), testContext, () -> {
      final var expected = new PlannedActivity();
      expected.id = model.id;
      expected.attendees = new ArrayList<>();
      assertThat(model).isEqualTo(expected);
    });
  }
@ Test public void shouldEmptyAttenderWillRemoved ( final Vertx vertx , final VertxTestContext testContext ) { final var model = new PlannedActivity ( ) ; model . attendees = new ArrayList < > ( ) ; model . attendees . add ( null ) ; model . attendees . add ( null ) ; model . attendees . add ( null ) ; assertIsValid ( model , new WeNetValidateContext ( "codePrefix" , vertx ) , testContext , ( ) -> { final var expected = new PlannedActivity ( ) ; expected . id = model . id ; expected . attendees = new ArrayList < > ( ) ; assertThat ( model ) . isEqualTo ( expected ) ; } ) ; }
Check that not accept planned activity with bad attender.
Check that not accept planned activity with bad attender .