Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
20 0 0 0 100% 14,34 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.medilabosolutions.patient_service.controller 9 0 0 0 100% 13,05 s
com.medilabosolutions.patient_service.service 11 0 0 0 100% 1,283 s

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

com.medilabosolutions.patient_service.controller

- Class Tests Errors Failures Skipped Success Rate Time
PatientControllerIT 9 0 0 0 100% 13,05 s

com.medilabosolutions.patient_service.service

- Class Tests Errors Failures Skipped Success Rate Time
PatientServiceTest 11 0 0 0 100% 1,283 s

Test Cases

[Summary] [Package List] [Test Cases]

PatientControllerIT

deletePatient_ShouldReturnNoContent 1,685 s
deleteAllPatients_ShouldRemoveAllPatients 0,186 s
getPatientById_WithNonExistentId_ShouldReturnNotFound 0,012 s
updatePatient_WithNonExistentId_ShouldReturnNotFound 0,122 s
getPatientById_ShouldReturnPatient 0,060 s
createPatient_ShouldReturnCreatedPatient 0,194 s
getAllPatients_ShouldReturnPatientsList 0,022 s
updatePatient_ShouldReturnUpdatedPatient 0,034 s
createPatient_WithInvalidData_ShouldReturnBadRequest 0,024 s

PatientServiceTest

deletePatient_WhenPatientExists_ShouldDeletePatient 0,839 s
getAllPatients_WhenNoPatients_ShouldReturnEmptyList 0,317 s
createPatient_ShouldSaveAndReturnPatientDTO 0,016 s
getAllPatients_ShouldReturnListOfPatientDTOs 0,017 s
getPatientById_WhenPatientExists_ShouldReturnPatientDTO 0,005 s
getPatientById_WithDifferentPatient_ShouldReturnCorrectPatientDTO 0,027 s
updatePatient_WhenPatientNotExists_ShouldThrowException 0,009 s
deleteAllPatients_ShouldCallRepositoryDeleteAll 0,006 s
updatePatient_WhenPatientExists_ShouldUpdateAndReturnDTO 0,009 s
deletePatient_WhenPatientNotExists_ShouldThrowException 0,005 s
getPatientById_WhenPatientNotExists_ShouldThrowException 0,005 s