components/src/test/java/eu/internetofus/common/components/models/SocialPracticeTest.java
/**
   * Check that is not valid a model with a competence that has the same name and
   * ontology.
   *
   * @param vertx       event bus to use.
   * @param testContext test context to use.
   *
   * @see SocialPractice#validate(WeNetValidateContext)
   */
Check that is not valid a model with a competence that has the same name and
ontology.

@param vertx       event bus to use.
@param testContext test context to use.


Check that is not valid a model with a competence that has the same name and ontology . @param vertx event bus to use . @param testContext test context to use .
@Test
  public void shouldNotBeValidWithACompetenceWithSameNameAndOntology(final Vertx vertx,
      final VertxTestContext testContext) {
    final var model = this.createModelExample(1);
    model.competences.add(Model.fromJsonObject(model.competences.get(0).toJsonObject(), Competence.class));
    model.competences.get(model.competences.size() - 1).level = 0d;
    assertIsNotValid(model, "competences[3]", new WeNetValidateContext("codePrefix", vertx), testContext);
  }
@ Test public void shouldNotBeValidWithACompetenceWithSameNameAndOntology ( final Vertx vertx , final VertxTestContext testContext ) { final var model = this . createModelExample ( 1 ) ; model . competences . add ( Model . fromJsonObject ( model . competences . get ( 0 ) . toJsonObject ( ) , Competence . class ) ) ; model . competences . get ( model . competences . size ( ) - 1 ) . level = 0d ; assertIsNotValid ( model , "competences[3]" , new WeNetValidateContext ( "codePrefix" , vertx ) , testContext ) ; }
Check that is not valid a model with a competence that has the same name and
 ontology.
Check that is not valid a model with a competence that has the same name and ontology .