Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
33 0 0 0 100% 10.14 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.front 2 0 0 0 100% 7.254 s
com.medilabo.solutions.front.controller 31 0 0 0 100% 2.881 s

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

com.medilabo.solutions.front

- Class Tests Errors Failures Skipped Success Rate Time
FrontApplicationTests 2 0 0 0 100% 7.254 s

com.medilabo.solutions.front.controller

- Class Tests Errors Failures Skipped Success Rate Time
NotesControllerTest 8 0 0 0 100% 0.632 s
HomeControllerTest 9 0 0 0 100% 0.547 s
PatientFormControllerTest 14 0 0 0 100% 1.702 s

Test Cases

[Summary] [Package List] [Test Cases]

NotesControllerTest

getPatientNotes_WithEmptyNotesList_ShouldReturnNotesView 0.087 s
updatePatient_WhenServiceThrowsException_ShouldRedirectWithError 0.034 s
getPatientNotes_WithValidPatientId_ShouldReturnNotesView 0.020 s
updatePatient_WithInvalidData_ShouldRedirectWithError 0.007 s
addNote_WithEmptyNote_ShouldRedirectWithError 0.009 s
addNote_WithValidNote_ShouldRedirectWithSuccess 0.007 s
addNote_WhenServiceThrowsException_ShouldRedirectWithError 0.007 s
updatePatient_WithValidData_ShouldRedirectWithSuccess 0.006 s

HomeControllerTest

home_WithEmptyPatientList_ShouldReturnHomeViewWithEmptyList 0.058 s
home_WhenGatewayServiceThrowsException_ShouldReturnHomeViewWithError 0.010 s
home_WithDifferentSortDirections_ShouldWork 0.013 s
home_WithInvalidPageParameter_ShouldUseDefaultValue 0.014 s
home_WithCustomParameters_ShouldReturnHomeViewWithCustomData 0.024 s
home_WithAllCustomParameters_ShouldWork 0.016 s
home_WithLargePageSize_ShouldWork 0.010 s
home_WithDefaultParameters_ShouldReturnHomeView 0.010 s
home_WithNegativePageParameter_ShouldWork 0.009 s

PatientFormControllerTest

savePatient_WithTooLongAddress_ShouldReturnFormWithErrors 0.750 s
savePatient_WithInvalidPhoneNumber_ShouldReturnFormWithErrors 0.017 s
savePatient_WithAccentsAndApostrophes_ShouldCreatePatient 0.037 s
savePatient_WithInvalidData_ShouldReturnFormWithErrors 0.020 s
showEditPatientForm_WithValidPatientId_ShouldReturnPatientFormView 0.017 s
savePatient_WithValidNewPatient_ShouldRedirectToHomeWithSuccess 0.007 s
showNewPatientForm_ShouldReturnPatientFormView 0.013 s
savePatient_WithMinimumValidData_ShouldCreatePatient 0.007 s
savePatient_WithValidFrenchPhoneNumbers_ShouldCreatePatient 0.008 s
savePatient_WithValidExistingPatient_ShouldRedirectToHomeWithSuccess 0.007 s
savePatient_WhenCreateThrowsException_ShouldReturnFormWithError 0.023 s
savePatient_WithInvalidName_ShouldReturnFormWithErrors 0.015 s
showEditPatientForm_WhenPatientNotFound_ShouldRedirectToHome 0.005 s
savePatient_WhenUpdateThrowsException_ShouldReturnFormWithError 0.014 s

FrontApplicationTests

shouldStartApplicationWithoutErrors 0.048 s
contextLoads 0.012 s