Skip to content
Snippets Groups Projects
Commit fad3998b authored by mjw11's avatar mjw11
Browse files

Add new tests for getting all preregistered users

parent b96d2f82
No related branches found
No related tags found
2 merge requests!22Merge UC92 into Master,!15Merge 5-uc-92-activate-pre-registered-patient-2 into UC92v2
......@@ -20,17 +20,21 @@ public class ViewPreRegisteredPatientListActionTest extends TestCase {
protected void setUp() throws Exception {
gen = new TestDataGenerator();
gen.clearAllTables();
gen.patient4();
gen.hcp3();
}
public void testViewPatients() throws Exception {
action = new ViewPreRegisteredPatientListAction(factory);
List<PatientBean> pb = action.getPreRegisteredPatients();
assertEquals(pb.get(0).getMID(), 4);
assertEquals(0, pb.size());
gen.patient92();
gen.patient4();
pb = action.getPreRegisteredPatients();
assertEquals(1, pb.size());
assertEquals(492, pb.get(0).getMID());
}
public void testNoPersonnel() throws Exception {
gen.patient92();
action = new ViewPreRegisteredPatientListAction(factory);
List<PatientBean> pb = action.getPreRegisteredPatients();
for (PatientBean p : pb) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment