RED-6072 - As Operation I want to see why files are in an ERROR state

- update junit test
This commit is contained in:
devplant 2023-05-17 10:10:51 +03:00
parent 5bf42a6c60
commit 1858e462e0

View File

@ -205,7 +205,7 @@ public class FileProcessingTest extends AbstractPersistenceServerServiceTest {
var file = fileTesterAndProvider.testAndProvideFile(dossier);
fileProcessingClient.analysisFailed(dossier.getId(), file.getId(), null);
fileProcessingClient.analysisFailed(dossier.getId(), file.getId(), new FileErrorInfo());
var loadedFile = fileClient.getFileStatus(dossier.getId(), file.getId());
assertThat(loadedFile.getProcessingStatus()).isEqualTo(ProcessingStatus.ERROR);
assertThat(loadedFile.getFileErrorInfo()).isNotNull();