components/src/test/java/eu/internetofus/common/components/models/PlannedActivityTest.java
/**
   * Check that not merge planned activity with bad end time.
   *
   * @param badTime     a bad time value.
   * @param vertx       event bus to use.
   * @param testContext context to test.
   *
   * @see PlannedActivity#merge(PlannedActivity, WeNetValidateContext)
   */
Check that not merge planned activity with bad end time.
@param badTime     a bad time value.
@param vertx       event bus to use.
@param testContext context to test.


Check that not merge planned activity with bad end time . @param badTime a bad time value . @param vertx event bus to use . @param testContext context to test .
@ParameterizedTest(name = "Should not be valid with endTime = {0}")
  @ValueSource(strings = { "0", "tomorrow", "2019-23-10", "10:00", "2019-02-30T00:00:00Z" })
  public void shouldNotMergeWithABadEndTime(final String badTime, final Vertx vertx,
      final VertxTestContext testContext) {
    final var target = this.createModelExample(1);
    final var source = new PlannedActivity();
    source.endTime = badTime;
    assertCannotMerge(target, source, "endTime", new WeNetValidateContext("codePrefix", vertx), testContext);
  }
@ ParameterizedTest ( name = "Should not be valid with endTime = {0}" ) @ ValueSource ( strings = { "0" , "tomorrow" , "2019-23-10" , "10:00" , "2019-02-30T00:00:00Z" } ) public void shouldNotMergeWithABadEndTime ( final String badTime , final Vertx vertx , final VertxTestContext testContext ) { final var target = this . createModelExample ( 1 ) ; final var source = new PlannedActivity ( ) ; source . endTime = badTime ; assertCannotMerge ( target , source , "endTime" , new WeNetValidateContext ( "codePrefix" , vertx ) , testContext ) ; }
Check that not merge planned activity with bad end time.
Check that not merge planned activity with bad end time .