hello community anyone who has an Idea on a blocker I’m facing
I’m trying to test a method getPageOfPatients
when i run it i run into an Exception error of
org.openelisglobal.common.exception.LIMSRuntimeException: Error in Patient getPageOfPatients()
@mherman22 @Moses_Mutesasira @rahul6603
1 Like
An entire error would really help. Kindly share it
1 Like
why is your startingRecNo = 0? and because you set it to zero, this line → OpenELIS-Global-2/src/main/java/org/openelisglobal/patient/daoimpl/PatientDAOImpl.java at 2b80571a21b95e7b1c561b9b0a5bfc37131ccabd · I-TECH-UW/OpenELIS-Global-2 · GitHub wil be -1 which is not ideal according to me.
EVen the error logs have this line Caused by: java.lang.IllegalArgumentException: first-result value cannot be negative : -1
use 1
instead of 0
on this line List<Patient> patientsPage = patientService.getPageOfPatients(1);
1 Like