feat(transcription): person @mention sidecar + rename propagation (PR-A backend, #362) #366
@@ -321,7 +321,7 @@ class PersonServiceTest {
|
|||||||
.build();
|
.build();
|
||||||
|
|
||||||
TranscriptionBlockRepository blockRepo = mock(TranscriptionBlockRepository.class);
|
TranscriptionBlockRepository blockRepo = mock(TranscriptionBlockRepository.class);
|
||||||
when(blockRepo.findByMentionedPersons_PersonId(id))
|
when(blockRepo.findByPersonIdWithMentionsFetched(id))
|
||||||
.thenReturn(List.of(referencingBlock));
|
.thenReturn(List.of(referencingBlock));
|
||||||
when(blockRepo.saveAllAndFlush(any()))
|
when(blockRepo.saveAllAndFlush(any()))
|
||||||
.thenThrow(new ObjectOptimisticLockingFailureException(
|
.thenThrow(new ObjectOptimisticLockingFailureException(
|
||||||
|
|||||||
Reference in New Issue
Block a user