Search in sources :

Example 1 with SFTPResourceMap

use of com.dexels.navajo.resource.sftp.SFTPResourceMap in project navajo by Dexels.

the class SFTPResourceTest method testSFTPResourceMap.

@Test
@Ignore
public void testSFTPResourceMap() throws MappableException, UserException {
    SFTPResourceMap sf = new SFTPResourceMap();
    sf.load(new Access());
    sf.setResource("test");
    sf.setPath("/share");
    sf.setFilename("monkey.gif");
    Binary b = new Binary(getClass().getResourceAsStream("logo.gif"));
    sf.setContent(b);
    sf.store();
}
Also used : SFTPResourceMap(com.dexels.navajo.resource.sftp.SFTPResourceMap) Access(com.dexels.navajo.script.api.Access) Binary(com.dexels.navajo.document.types.Binary) Ignore(org.junit.Ignore) Test(org.junit.Test)

Aggregations

Binary (com.dexels.navajo.document.types.Binary)1 SFTPResourceMap (com.dexels.navajo.resource.sftp.SFTPResourceMap)1 Access (com.dexels.navajo.script.api.Access)1 Ignore (org.junit.Ignore)1 Test (org.junit.Test)1