Skip to content

Commit

Permalink
♻️ dms refactor exception encapsulation fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
simonhir committed Nov 8, 2024
1 parent c26924c commit cda053b
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,7 @@ void testLoadFileFromFilePathThrowsDocumentStorageException()

final DocumentStorageException documentStorageException = assertThrows(DocumentStorageException.class, () -> this.s3Adapter.loadFiles(filePaths));

final String expectedMessage = "An file could not be loaded from url: " + pdfPath;
final String actualMessage = documentStorageException.getMessage();

assertEquals(expectedMessage, actualMessage);
assertEquals(SOME_ERROR, documentStorageException.getMessage());
}

@Test
Expand Down

0 comments on commit cda053b

Please sign in to comment.