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

@return the answers of the materials.
Create the materials obtained by the survey . @param index of the answers to create . @return the answers of the materials .
public List<Material> createAnswerMaterials(final int index) {
    final List<Material> materials = new ArrayList<>();
    var material = new Material();
    material.classification = "university_status";
    material.name = "department";
    material.description = DEPARTMENTS[index % DEPARTMENTS.length];
    material.quantity = 1;
    materials.add(material);
    material = new Material();
    material.classification = "university_status";
    material.name = "degree_programme";
    material.description = DEGREES[index % DEGREES.length];
    material.quantity = 1;
    materials.add(material);
    material = new Material();
    material.classification = "university_status";
    material.name = "accommodation";
    material.description = LIVE_PLACES[index % LIVE_PLACES.length];
    material.quantity = 1;
    materials.add(material);
    return materials;
  }
public List < Material > createAnswerMaterials ( final int index ) { final List < Material > materials = new ArrayList < > ( ) ; var material = new Material ( ) ; material . classification = "university_status" ; material . name = "department" ; material . description = DEPARTMENTS [ index % DEPARTMENTS . length ] ; material . quantity = 1 ; materials . add ( material ) ; material = new Material ( ) ; material . classification = "university_status" ; material . name = "degree_programme" ; material . description = DEGREES [ index % DEGREES . length ] ; material . quantity = 1 ; materials . add ( material ) ; material = new Material ( ) ; material . classification = "university_status" ; material . name = "accommodation" ; material . description = LIVE_PLACES [ index % LIVE_PLACES . length ] ; material . quantity = 1 ; materials . add ( material ) ; return materials ; }
Create the materials obtained by the survey.
Create the materials obtained by the survey .
// Q03 // Q04 // Q05