mirror of
https://github.com/RoastSlav/quickdrop.git
synced 2025-12-30 19:20:14 -06:00
fixed a test with saving files without password, was expecting a password to be present
This commit is contained in:
@@ -44,7 +44,9 @@ public class FileServiceTests {
|
||||
when(file.getSize()).thenReturn(1024L);
|
||||
when(file.getBytes()).thenReturn("test content".getBytes());
|
||||
|
||||
when(fileRepository.save(any(FileEntity.class))).thenReturn(getFileEntity());
|
||||
FileEntity fileEntity = getFileEntity();
|
||||
fileEntity.passwordHash = null;
|
||||
when(fileRepository.save(any(FileEntity.class))).thenReturn(fileEntity);
|
||||
|
||||
FileEntity result = fileService.saveFile(file, getFileUploadRequest());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user