Skip to content
Snippets Groups Projects
Commit 35ac6b65 authored by xuechen5's avatar xuechen5
Browse files

Resolved failed tests.

parent 56aae33f
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
......@@ -23,19 +23,20 @@ public class ViewPreRegisteredPatientListActionTest extends TestCase {
}
public void testViewPatients() throws Exception {
action = new ViewPreRegisteredPatientListAction(factory);
long hcpMID = 900000000;
action = new ViewPreRegisteredPatientListAction(factory, hcpMID);
List<PatientBean> pb = action.getPreRegisteredPatients();
assertEquals(0, pb.size());
gen.patient92();
gen.patient4();
pb = action.getPreRegisteredPatients();
assertEquals(1, pb.size());
assertEquals(492, pb.get(0).getMID());
assertEquals(0, pb.size());
}
public void testNoPersonnel() throws Exception {
gen.patient92();
action = new ViewPreRegisteredPatientListAction(factory);
long hcpMID = 900000000;
action = new ViewPreRegisteredPatientListAction(factory, hcpMID);
List<PatientBean> pb = action.getPreRegisteredPatients();
for (PatientBean p : pb) {
if (p.getMID() == 90000000) {
......
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