components/src/test/java/eu/internetofus/common/components/models/WeNetUserProfileTest.java
/**
   * Check that not merge profiles with bad personal behaviors.
   *
   * @param vertx       event bus to use.
   * @param testContext context to test.
   *
   * @see WeNetUserProfile#merge(WeNetUserProfile, WeNetValidateContext)
   */
Check that not merge profiles with bad personal behaviors.
@param vertx       event bus to use.
@param testContext context to test.


Check that not merge profiles with bad personal behaviors . @param vertx event bus to use . @param testContext context to test .
@Test
  public void shouldNotMergeWithABadPersonalBehaviors(final Vertx vertx, final VertxTestContext testContext) {
    final var source = new WeNetUserProfile();
    source.personalBehaviors = new ArrayList<>();
    source.personalBehaviors.add(new Routine());
    assertCannotMerge(new WeNetUserProfile(), source, "personalBehaviors[0].label_distribution",
        new WeNetValidateContext("codePrefix", vertx), testContext);
  }
@ Test public void shouldNotMergeWithABadPersonalBehaviors ( final Vertx vertx , final VertxTestContext testContext ) { final var source = new WeNetUserProfile ( ) ; source . personalBehaviors = new ArrayList < > ( ) ; source . personalBehaviors . add ( new Routine ( ) ) ; assertCannotMerge ( new WeNetUserProfile ( ) , source , "personalBehaviors[0].label_distribution" , new WeNetValidateContext ( "codePrefix" , vertx ) , testContext ) ; }
Check that not merge profiles with bad personal behaviors.
Check that not merge profiles with bad personal behaviors .