components/src/test/java/eu/internetofus/common/components/models/RoutineTest.java
/**
   * Check that can not update with a bad user identifier.
   *
   * @param vertx       event bus to use.
   * @param testContext test context to use.
   *
   * @see Routine#update(Routine, WeNetValidateContext)
   */
Check that can not update with a bad user identifier.
@param vertx       event bus to use.
@param testContext test context to use.


Check that can not update with a bad user identifier . @param vertx event bus to use . @param testContext test context to use .
@Test
  public void shouldNotUpdateWithBadUserId(final Vertx vertx, final VertxTestContext testContext) {
    this.createModelExample(1, vertx, testContext).onSuccess(target -> {
      final var source = Model.fromBuffer(target.toBuffer(), Routine.class);
      source.user_id = "undefined user indentifier";
      assertCannotUpdate(target, source, "user_id", new WeNetValidateContext("codePrefix", vertx), testContext);
    });
  }
@ Test public void shouldNotUpdateWithBadUserId ( final Vertx vertx , final VertxTestContext testContext ) { this . createModelExample ( 1 , vertx , testContext ) . onSuccess ( target -> { final var source = Model . fromBuffer ( target . toBuffer ( ) , Routine . class ) ; source . user_id = "undefined user indentifier" ; assertCannotUpdate ( target , source , "user_id" , new WeNetValidateContext ( "codePrefix" , vertx ) , testContext ) ; } ) ; }
Check that can not update with a bad user identifier.
Check that can not update with a bad user identifier .