components/src/test/java/eu/internetofus/common/components/models/RoutineTest.java
/**
   * Check that a {@link Routine} without a label_distribution is not valid.
   *
   * @param vertx       event bus to use.
   * @param testContext test context to use.
   *
   * @see Routine#validate(WeNetValidateContext)
   */
Check that a  Routine without a label_distribution is not valid.
@param vertx       event bus to use.
@param testContext test context to use.


Check that a Routine without a label_distribution is not valid . @param vertx event bus to use . @param testContext test context to use .
@Test
  public void shouldRoutineWithoutLabel_distributiondNotBeValid(final Vertx vertx, final VertxTestContext testContext) {
    this.createModelExample(1, vertx, testContext).onSuccess(model -> {
      model.label_distribution = null;
      assertIsNotValid(model, "label_distribution", new WeNetValidateContext("codePrefix", vertx), testContext);
    });
  }
@ Test public void shouldRoutineWithoutLabel_distributiondNotBeValid ( final Vertx vertx , final VertxTestContext testContext ) { this . createModelExample ( 1 , vertx , testContext ) . onSuccess ( model -> { model . label_distribution = null ; assertIsNotValid ( model , "label_distribution" , new WeNetValidateContext ( "codePrefix" , vertx ) , testContext ) ; } ) ; }
Check that a {@link Routine} without a label_distribution is not valid.
Check that a { @link Routine } without a label_distribution is not valid .