Skip to content

Commit 49e46ad

Browse files
committed
Merge pull request #7 from sakama/fix-broken-unit-tests
Fix broken unit tests
2 parents c81eb19 + 0a9b14e commit 49e46ad

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ dependencies {
2727
testCompile "junit:junit:4.+"
2828
testCompile "org.embulk:embulk-core:0.7.+:tests"
2929
testCompile "org.embulk:embulk-standards:0.7.+"
30-
testCompile "org.apache.sshd:apache-sshd:1.+"
30+
testCompile "org.apache.sshd:apache-sshd:1.1.0+"
3131
}
3232

3333
jacocoTestReport {

src/test/java/org/embulk/output/sftp/TestSftpFileOutputPlugin.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
import org.apache.sshd.server.SshServer;
1414
import org.apache.sshd.server.auth.password.PasswordAuthenticator;
1515
import org.apache.sshd.server.auth.pubkey.PublickeyAuthenticator;
16-
import org.apache.sshd.server.command.ScpCommandFactory;
1716
import org.apache.sshd.server.keyprovider.SimpleGeneratorHostKeyProvider;
17+
import org.apache.sshd.server.scp.ScpCommandFactory;
1818
import org.apache.sshd.server.session.ServerSession;
1919
import org.apache.sshd.server.subsystem.sftp.SftpSubsystemFactory;
2020
import org.embulk.EmbulkTestRuntime;
@@ -103,7 +103,7 @@ public void createResources()
103103
// setup a mock sftp server
104104
sshServer = SshServer.setUpDefaultServer();
105105
VirtualFileSystemFactory fsFactory = new VirtualFileSystemFactory();
106-
fsFactory.setUserHomeDir(USERNAME, testFolder.getRoot().getAbsolutePath());
106+
fsFactory.setUserHomeDir(USERNAME, testFolder.getRoot().toPath());
107107
sshServer.setFileSystemFactory(fsFactory);
108108
sshServer.setHost(HOST);
109109
sshServer.setPort(PORT);

0 commit comments

Comments
 (0)