RED-3894 - Allow the user to define a page range for imported redactions

- fix dependency issues
This commit is contained in:
devplant 2022-10-17 13:41:30 +03:00
parent ecbdf86f45
commit 61c60b30c4

View File

@ -217,7 +217,7 @@ public abstract class AbstractPersistenceServerServiceTest {
var untouchedObjectId = StorageIdUtils.getStorageId(d.getDossierId(), d.getFileId(), FileType.ORIGIN);
return new ByteContentDocument(IOUtils.toByteArray(storageService.getObject(untouchedObjectId)
.getInputStream()));
.getInputStream()), null);
});
when(pdfTronRedactionClient.redactionPreview(Mockito.any())).thenAnswer((answer) -> {
Object[] args = answer.getArguments();
@ -225,7 +225,7 @@ public abstract class AbstractPersistenceServerServiceTest {
var untouchedObjectId = StorageIdUtils.getStorageId(d.getDossierId(), d.getFileId(), FileType.ORIGIN);
return new ByteContentDocument(IOUtils.toByteArray(storageService.getObject(untouchedObjectId)
.getInputStream()));
.getInputStream()), null);
});
when(pdfTronRedactionClient.redactionPreviewDiff(Mockito.any())).thenAnswer((answer) -> {
Object[] args = answer.getArguments();
@ -233,7 +233,7 @@ public abstract class AbstractPersistenceServerServiceTest {
var untouchedObjectId = StorageIdUtils.getStorageId(d.getDossierId(), d.getFileId(), FileType.ORIGIN);
return new ByteContentDocument(IOUtils.toByteArray(storageService.getObject(untouchedObjectId)
.getInputStream()));
.getInputStream()), null);
});
when(redactionClient.sections(Mockito.any())).thenReturn(new RedactionResult());