diff --git a/spring-integration-sftp/src/test/java/org/springframework/integration/sftp/session/SftpRemoteFileTemplateTests.java b/spring-integration-sftp/src/test/java/org/springframework/integration/sftp/session/SftpRemoteFileTemplateTests.java index a877411a9e..1ef8855844 100644 --- a/spring-integration-sftp/src/test/java/org/springframework/integration/sftp/session/SftpRemoteFileTemplateTests.java +++ b/spring-integration-sftp/src/test/java/org/springframework/integration/sftp/session/SftpRemoteFileTemplateTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2022 the original author or authors. + * Copyright 2014-2023 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -77,8 +77,8 @@ public class SftpRemoteFileTemplateTests extends SftpTestSupport { template.afterPropertiesSet(); template.execute(session -> { - session.mkdir("/foo/"); - return session.mkdir("/foo/bar/"); + session.mkdir("/foo"); + return session.mkdir("/foo/bar"); }); template.append(new GenericMessage<>("foo")); template.append(new GenericMessage<>("bar")); @@ -93,7 +93,7 @@ public class SftpRemoteFileTemplateTests extends SftpTestSupport { } }); template.execute((SessionCallbackWithoutResult) session -> { - SftpClient.DirEntry[] files = session.list("/foo/"); + SftpClient.DirEntry[] files = session.list("/foo"); assertThat(files.length).isEqualTo(4); assertThat(session.remove("/foo/foobar.txt")).isTrue(); assertThat(session.rmdir("/foo/bar/")).isTrue();