@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); }
@Before public void setupSystem() { specialty = repositoryHelpers.createSpecialty("Specialty1", "ten1", "A test specialty"); }