use of org.syncany.plugins.transfer.features.TransactionAwareFeatureTransferManager in project syncany by syncany.
the class AbstractTransferManagerTest method loadPluginAndCreateTransferManager.
private TransferManager loadPluginAndCreateTransferManager() throws StorageException {
TransferPlugin pluginInfo = Plugins.get(getPluginId(), TransferPlugin.class);
TransferSettings connection = pluginInfo.createEmptySettings();
for (Map.Entry<String, String> pair : createPluginSettings().entrySet()) {
connection.setField(pair.getKey(), pair.getValue());
}
TransferManager originalTransferManager = pluginInfo.createTransferManager(connection, null);
return new TransactionAwareFeatureTransferManager(originalTransferManager, originalTransferManager, null, null);
}
Aggregations