assertEquals("/tmp", sftpEndpoint.getConfiguration().getFile());
assertEquals(true, sftpEndpoint.getConfiguration().isDirectory());
}
public void testSftpConfigurationFile() throws Exception {
Endpoint endpoint = context.getEndpoint("sftp://camel-user@localhost:123/tmp/file?password=secret&directory=false");
assertTrue("Endpoint not an SftpEndpoint: " + endpoint, endpoint instanceof SftpEndpoint);
SftpEndpoint sftpEndpoint = (SftpEndpoint) endpoint;
assertEquals("localhost", sftpEndpoint.getConfiguration().getHost());
assertEquals(123, sftpEndpoint.getConfiguration().getPort());