components/src/test/java/eu/internetofus/common/components/models/TaskTypeTest.java
/**
   * Check that the model is valid with keywords with spaces.
   *
   * @param vertx       event bus to use.
   * @param testContext test context to use.
   *
   * @see TaskType#validate(WeNetValidateContext)
   */
Check that the model is valid with keywords with spaces.
@param vertx       event bus to use.
@param testContext test context to use.


Check that the model is valid with keywords with spaces . @param vertx event bus to use . @param testContext test context to use .
@Test
  public void shouldBeValidAKeywordWithSpaces(final Vertx vertx, final VertxTestContext testContext) {
    final var model = this.createModelExample(1);
    model.keywords = new ArrayList<>();
    model.keywords.add(null);
    model.keywords.add("   1234567890   ");
    model.keywords.add(null);
    model.keywords.add("     ");
    model.keywords.add("\n\t");
    assertIsValid(model, new WeNetValidateContext("codePrefix", vertx), testContext,
        () -> assertThat(model.keywords).isNotEmpty().hasSize(1).contains("1234567890", atIndex(0)));
  }
@ Test public void shouldBeValidAKeywordWithSpaces ( final Vertx vertx , final VertxTestContext testContext ) { final var model = this . createModelExample ( 1 ) ; model . keywords = new ArrayList < > ( ) ; model . keywords . add ( null ) ; model . keywords . add ( "   1234567890   " ) ; model . keywords . add ( null ) ; model . keywords . add ( "     " ) ; model . keywords . add ( "\n\t" ) ; assertIsValid ( model , new WeNetValidateContext ( "codePrefix" , vertx ) , testContext , ( ) -> assertThat ( model . keywords ) . isNotEmpty ( ) . hasSize ( 1 ) . contains ( "1234567890" , atIndex ( 0 ) ) ) ; }
Check that the model is valid with keywords with spaces.
Check that the model is valid with keywords with spaces .