Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
18 0 0 0 100% 6.132 s

Note: failures are anticipated and checked for with assertions while errors are unanticipated.


Package List

[Summary] [Package List] [Test Cases]


Package Tests Errors Failures Skipped Success Rate Time
com.medilabo.solutions.patient 1 0 0 0 100% 0.004 s
com.medilabo.solutions.patient.controller 10 0 0 0 100% 5.718 s
com.medilabo.solutions.patient.service 7 0 0 0 100% 0.410 s

Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers.

com.medilabo.solutions.patient

- Class Tests Errors Failures Skipped Success Rate Time
PatientApplicationTests 1 0 0 0 100% 0.004 s

com.medilabo.solutions.patient.controller

- Class Tests Errors Failures Skipped Success Rate Time
PatientControllerTest 10 0 0 0 100% 5.718 s

com.medilabo.solutions.patient.service

- Class Tests Errors Failures Skipped Success Rate Time
PatientServiceTest 7 0 0 0 100% 0.410 s

Test Cases

[Summary] [Package List] [Test Cases]

PatientControllerTest

getAllPatientsWithPagination_ShouldReturnPaginatedPatients 0.422 s
createPatient_WithInvalidData_ShouldReturn400 0.189 s
deletePatient_WithValidId_ShouldDeletePatient 0.017 s
createPatient_WithValidData_ShouldCreatePatient 0.013 s
getPatient_WithValidId_ShouldReturnPatient 0.009 s
updatePatient_WithValidData_ShouldUpdatePatient 0.012 s
updatePatient_WithInvalidId_ShouldReturn404 0.019 s
getPatient_WithInvalidId_ShouldReturn404 0.011 s
getAllPatients_ShouldReturnAllPatients 0.016 s
deletePatient_WithInvalidId_ShouldReturn404 0.008 s

PatientApplicationTests

contextLoads 0.001 s

PatientServiceTest

findAll_ShouldReturnAllPatients 0.378 s
create_WithValidPatientDto_ShouldReturnCreatedPatient 0.008 s
findById_WithValidId_ShouldReturnPatient 0.004 s
update_WithValidPatientDto_ShouldReturnUpdatedPatient 0.004 s
findAllWithPagination_ShouldReturnPaginatedPatients 0.003 s
findById_WithInvalidId_ShouldThrowException 0.004 s
delete_WithValidPatientDto_ShouldDeletePatient 0.003 s