components/src/test/java/eu/internetofus/common/components/models/WeNetUserProfileTest.java
/**
   * Create the competences obtained by the survey.
   *
   * @param index of the answers to create.
   *
   * @return the answers of the competences.
   */
Create the competences obtained by the survey.
@param index of the answers to create.

@return the answers of the competences.
Create the competences obtained by the survey . @param index of the answers to create . @return the answers of the competences .
public List<Competence> createAnswerCompetences(final int index) {
    final List<Competence> competences = new ArrayList<>();
    for (final var name : new String[] { "c_food", "c_eating", "c_lit", "c_creatlit", "c_app_mus", "c_perf_mus",
        "c_plays", "c_perf_plays", "c_musgall", "c_perf_art", "c_watch_sp", "c_ind_sp", "c_team_sp", "c_accom",
        "c_locfac" }) {
      final var competence = new Competence();
      competence.ontology = "interest";
      competence.name = name;
      competence.level = 0.25 * (index % 5);
      competences.add(competence);
    }
    for (final var name : new String[] { "u_active", "u_read", "u_essay", "u_org", "u_balance", "u_assess", "u_theory",
        "u_pract" }) {
      final var competence = new Competence();
      competence.ontology = "university_activity";
      competence.name = name;
      competence.level = 0.25 * (index % 5);
      competences.add(competence);
    }
    return competences;
  }
public List < Competence > createAnswerCompetences ( final int index ) { final List < Competence > competences = new ArrayList < > ( ) ; for ( final var name : new String [ ] { "c_food" , "c_eating" , "c_lit" , "c_creatlit" , "c_app_mus" , "c_perf_mus" , "c_plays" , "c_perf_plays" , "c_musgall" , "c_perf_art" , "c_watch_sp" , "c_ind_sp" , "c_team_sp" , "c_accom" , "c_locfac" } ) { final var competence = new Competence ( ) ; competence . ontology = "interest" ; competence . name = name ; competence . level = 0.25 * ( index % 5 ) ; competences . add ( competence ) ; } for ( final var name : new String [ ] { "u_active" , "u_read" , "u_essay" , "u_org" , "u_balance" , "u_assess" , "u_theory" , "u_pract" } ) { final var competence = new Competence ( ) ; competence . ontology = "university_activity" ; competence . name = name ; competence . level = 0.25 * ( index % 5 ) ; competences . add ( competence ) ; } return competences ; }
Create the competences obtained by the survey.
Create the competences obtained by the survey .
// Q06a - Q06o // Q07a-Q07h