components/src/test/java/eu/internetofus/common/components/models/WeNetUserProfileTest.java
/**
   * Check that the model is not valid it has two norms with the same identifier.
   *
   * @param vertx       event bus to use.
   * @param testContext context to test.
   *
   * @see WeNetUserProfile#validate(WeNetValidateContext)
   */
Check that the model is not valid it has two norms with the same identifier.
@param vertx       event bus to use.
@param testContext context to test.


Check that the model is not valid it has two norms with the same identifier . @param vertx event bus to use . @param testContext context to test .
@Test
  public void shouldNotValidWithDuplicatedNorms(final Vertx vertx, final VertxTestContext testContext) {
    final var model = new WeNetUserProfile();
    model.norms = new ArrayList<>();
    model.norms.add(new ProtocolNormTest().createModelExample(1));
    model.norms.add(new ProtocolNormTest().createModelExample(1));
    assertIsNotValid(model, "norms[1]", new WeNetValidateContext("codePrefix", vertx), testContext);
  }
@ Test public void shouldNotValidWithDuplicatedNorms ( final Vertx vertx , final VertxTestContext testContext ) { final var model = new WeNetUserProfile ( ) ; model . norms = new ArrayList < > ( ) ; model . norms . add ( new ProtocolNormTest ( ) . createModelExample ( 1 ) ) ; model . norms . add ( new ProtocolNormTest ( ) . createModelExample ( 1 ) ) ; assertIsNotValid ( model , "norms[1]" , new WeNetValidateContext ( "codePrefix" , vertx ) , testContext ) ; }
Check that the model is not valid it has two norms with the same identifier.
Check that the model is not valid it has two norms with the same identifier .