components/src/test/java/eu/internetofus/common/components/interaction_protocol_engine/ProtocolEventTest.java
/**
   * Check that not accept an undefined userId.
   *
   * @param vertx       event bus to use.
   * @param testContext context to test.
   *
   * @see ProtocolEvent#validate(WeNetValidateContext)
   */
Check that not accept an undefined userId.
@param vertx       event bus to use.
@param testContext context to test.


Check that not accept an undefined userId . @param vertx event bus to use . @param testContext context to test .
@Test
  public void shouldNotBeValidWithUndefinedUserId(final Vertx vertx, final VertxTestContext testContext) {
    this.createModelExample(1, vertx, testContext).onSuccess(model -> {
      model.userId = "undefined";
      assertIsNotValid(model, "userId", new WeNetValidateContext("codePrefix", vertx), testContext);
    });
  }
@ Test public void shouldNotBeValidWithUndefinedUserId ( final Vertx vertx , final VertxTestContext testContext ) { this . createModelExample ( 1 , vertx , testContext ) . onSuccess ( model -> { model . userId = "undefined" ; assertIsNotValid ( model , "userId" , new WeNetValidateContext ( "codePrefix" , vertx ) , testContext ) ; } ) ; }
Check that not accept an undefined userId.
Check that not accept an undefined userId .