Ejemplo n.º 1
0
  public String getTestData() {

    Student newAmy = studentRepository.findByUsername("0002");

    String ret = "New Amy's name: " + newAmy.getFirstName() + " " + newAmy.getLastName();
    System.out.println(ret);

    return ret;
  }
Ejemplo n.º 2
0
  private String getStudentInfo(String username) {
    Student stu = studentRepository.findByUsername(username);
    String ret =
        "Student username: "******", password: "******", name: "
            + stu.getFirstName()
            + " "
            + stu.getLastName()
            + "\n";

    return ret;
  }