assertEquals(PRIVATE_KEY_PASSPHRASE, model.getPrivateKeyFilePassphrase());
}
@Override
protected V1CamelSftpBindingModel createTestModel() {
V1CamelSftpBindingModel model = (V1CamelSftpBindingModel) new V1CamelSftpBindingModel(CamelFtpNamespace.V_1_1.uri());
model.getModelConfiguration().setPropertyResolver(new PropertyResolver() {
@Override
public Object resolveProperty(String key) {
if ("maxMessagesPerPoll".equals(key)) {
return 5;
}
return null;
}
});
model.setAdditionalUriParameters(createAdditionalUriParametersModel(CamelFtpNamespace.V_1_1.uri(), Collections.singletonMap("maxMessagesPerPoll", "${maxMessagesPerPoll}")));
model.setDirectory(DIRECTORY)
.setHost(HOST)
.setPort(PORT);
return model.setKnownHostsFile(KNOWN_HOSTS)
.setPrivateKeyFile(PRIVATE_KEY)
.setPrivateKeyFilePassphrase(PRIVATE_KEY_PASSPHRASE);
}