Skip to content

Commit a10ec58

Browse files
committed
Fix FileReadingMessageSourceTests for canonical file
**Auto-cherry-pick to `7.0.x` & `6.5.x`**
1 parent 3006edb commit a10ec58

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

spring-integration-file/src/test/java/org/springframework/integration/file/inbound/FileReadingMessageSourceTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ class FileReadingMessageSourceTests implements TestApplicationContextAware {
5757

5858
public void prepResource() throws IOException {
5959
when(inputDirectoryMock.toPath()).thenReturn(Path.of("[dir]"));
60+
when(inputDirectoryMock.getCanonicalFile()).thenReturn(inputDirectoryMock);
6061
when(fileMock.toPath()).thenReturn(Path.of("[dir]/fileMock"));
6162
when(fileMock.getAbsolutePath()).thenReturn("[dir]/fileMock");
6263
when(fileMock.getCanonicalFile()).thenReturn(fileMock);

0 commit comments

Comments
 (0)