delete test
This commit is contained in:
parent
2b879107d7
commit
720640f8aa
1 changed files with 0 additions and 22 deletions
|
@ -1,22 +0,0 @@
|
|||
package org.apache.sshd.fs.test;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.URI;
|
||||
import java.util.Map;
|
||||
import java.util.logging.Logger;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.xbib.files.FileService;
|
||||
|
||||
public class SftpClientTest {
|
||||
|
||||
@Test
|
||||
public void testSFTP() throws IOException {
|
||||
String targetURLString = "sftp://fernleihe-test.hbz-nrw.de:22";
|
||||
String targetIdString = "malva";
|
||||
URI uri = URI.create(targetURLString);
|
||||
FileService fs = FileService.newInstance(targetURLString,
|
||||
Map.of("username", targetIdString,
|
||||
"key", uri.getHost() + "/" + targetIdString + ".key"));
|
||||
fs.list(".").forEach(p -> Logger.getAnonymousLogger().info(p.toString()));
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue