Package org.openbel.framework.core.protocol.handler

Examples of org.openbel.framework.core.protocol.handler.SftpProtocolHandler.downloadResource()


     */
    @Test
    public void testUsernamePasswordSecureFtpFilePath() {
        try {
            SftpProtocolHandler sftp = new SftpProtocolHandler();
            File downloadedNamespace = sftp.downloadResource(
                    "sftp://sftptest:sftptest@localhost:" + port
                            + localTestFile.getAbsolutePath(), "test.belns");
            tempFiles.add(downloadedNamespace);
            testFile(downloadedNamespace);
        } catch (Exception e) {
View Full Code Here


    @Test
    public void testUsernameOnlySecureFtpFilePath() {
        try {
            SftpProtocolHandler sftp = new SftpProtocolHandler();
            sftp.setUserInfo(new TestUserInfo());
            File downloadedNamespace = sftp.downloadResource(
                    "sftp://sftptest@localhost:" + port
                            + localTestFile.getAbsolutePath(), "test.belns");
            tempFiles.add(downloadedNamespace);
            testFile(downloadedNamespace);
        } catch (Exception e) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.