Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
29 0 0 0 100% 6.037 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.note 1 0 0 0 100% 0.069 s
com.medilabo.solutions.note.controller 13 0 0 0 100% 5.518 s
com.medilabo.solutions.note.service 15 0 0 0 100% 0.450 s

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

com.medilabo.solutions.note

- Class Tests Errors Failures Skipped Success Rate Time
NoteApplicationTests 1 0 0 0 100% 0.069 s

com.medilabo.solutions.note.controller

- Class Tests Errors Failures Skipped Success Rate Time
NoteControllerTest 13 0 0 0 100% 5.518 s

com.medilabo.solutions.note.service

- Class Tests Errors Failures Skipped Success Rate Time
NoteServiceTest 15 0 0 0 100% 0.450 s

Test Cases

[Summary] [Package List] [Test Cases]

NoteApplicationTests

contextLoads 0.036 s

NoteServiceTest

getNotesByPatientId_WithSingleNote_ShouldReturnSingleNote 0.373 s
create_WithMinimalData_ShouldReturnCreatedNote 0.006 s
create_WithSpecialCharacters_ShouldReturnCreatedNote 0.004 s
delete_WithValidNoteId_ShouldDeleteNote 0.003 s
getNotesByPatientId_WithLargePatientId_ShouldReturnEmptyList 0.004 s
delete_WithNonExistentNoteId_ShouldThrowException 0.009 s
create_WithValidNoteDto_ShouldReturnCreatedNote 0.004 s
create_ShouldMaintainDataIntegrity 0.004 s
getNotesByPatientId_WithValidPatientId_ShouldReturnNotes 0.003 s
getNotesByPatientId_WithMultipleCalls_ShouldWorkCorrectly 0.004 s
getNotesByPatientId_WithPatientHavingNoNotes_ShouldReturnEmptyList 0.004 s
getNotesByPatientId_WithZeroAndNegativeIds_ShouldReturnEmptyList 0.003 s
create_WithLongContent_ShouldReturnCreatedNote 0.004 s
delete_WithRepositoryException_ShouldThrowResourceNotFoundException 0.004 s
getNotesByPatientId_WithDifferentPatientIds_ShouldCallRepositoryWithCorrectId 0.005 s

NoteControllerTest

createNote_WithValidData_ShouldCreateNote 0.418 s
createNote_WithSpecialCharacters_ShouldCreateNote 0.013 s
getNoteByPatientId_WithPatientHavingNoNotes_ShouldReturnEmptyList 0.033 s
getNoteByPatientId_WithLargePatientId_ShouldReturnNotes 0.010 s
getNoteByPatientId_WithDifferentPatientIds_ShouldReturnCorrectNotes 0.018 s
createNote_WithMalformedJson_ShouldReturn400 0.012 s
createNote_WithOnlyRequiredFields_ShouldCreateNote 0.011 s
getNoteByPatientId_WithZeroAndNegativeIds_ShouldReturnNotes 0.012 s
createNote_WithEmptyBody_ShouldReturn400 0.012 s
createNote_WithNullNote_ShouldReturn400 0.039 s
getNoteByPatientId_WithValidPatientId_ShouldReturnNotes 0.012 s
createNote_WithLongNote_ShouldCreateNote 0.009 s
createNote_WithBlankNote_ShouldReturn400 0.009 s