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#merge(PlannedActivity, 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 shouldMergeEmptyAttenderWillRemoved(final Vertx vertx, final VertxTestContext testContext) {
    final var target = this.createModelExample(1);
    final var source = new PlannedActivity();
    source.attendees = new ArrayList<>();
    source.attendees.add(null);
    source.attendees.add(null);
    source.attendees.add(null);
    assertCanMerge(target, source, new WeNetValidateContext("codePrefix", vertx), testContext,
        merged -> assertThat(merged.attendees).isNotNull().isEmpty());
  }
@ Test public void shouldMergeEmptyAttenderWillRemoved ( final Vertx vertx , final VertxTestContext testContext ) { final var target = this . createModelExample ( 1 ) ; final var source = new PlannedActivity ( ) ; source . attendees = new ArrayList < > ( ) ; source . attendees . add ( null ) ; source . attendees . add ( null ) ; source . attendees . add ( null ) ; assertCanMerge ( target , source , new WeNetValidateContext ( "codePrefix" , vertx ) , testContext , merged -> assertThat ( merged . attendees ) . isNotNull ( ) . isEmpty ( ) ) ; }
Check that not accept planned activity with bad attender.
Check that not accept planned activity with bad attender .