Some checks failed
CI / Unit & Component Tests (pull_request) Failing after 3m21s
CI / OCR Service Tests (pull_request) Successful in 32s
CI / Backend Unit Tests (pull_request) Failing after 3m20s
CI / Unit & Component Tests (push) Failing after 3m6s
CI / OCR Service Tests (push) Successful in 33s
CI / Backend Unit Tests (push) Failing after 3m9s
AnnotationService was changed to call transcriptionBlockRepository directly, but the test still mocked TranscriptionService — causing a NPE and leaving the cascade path uncovered. Replace the @Mock TranscriptionService with @Mock TranscriptionBlockRepository, update the two existing delete-test verifications, and add a dedicated deleteAnnotation_cascadesToTranscriptionBlocks test. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>