@Before
  public void setupSystem() throws Exception {

    specialty = repositoryHelpers.createSpecialty("Specialty1", "ten1", "A test specialty");

    user =
        repositoryHelpers.createUserWithMapping(
            "username", "*****@*****.**", "p", "username", "UNITCODEA", "9876543211", specialty);

    patient = new Patient();
    patient.setNhsno("9876543211");
    patient.setUnitcode("UNITCODEA");
    patient.setSurname("surname");
    patient.setForename("forname");
    patient.setPostcode("postcode");
    patient.setDateofbirth(new Date());

    patientDao.save(patient);
  }
Пример #2
0
 @Before
 public void setupSystem() {
   specialty = repositoryHelpers.createSpecialty("Specialty1", "ten1", "A test specialty");
 }