use of org.syncany.plugins.transfer.TransferPlugin in project syncany by syncany.
the class TransferSettingsTest method createNewValidConnectionTO.
@Test
public void createNewValidConnectionTO() throws Exception {
TransferPlugin p = Plugins.get("dummy", TransferPlugin.class);
DummyTransferSettings ts = p.createEmptySettings();
ts.foo = "foo-value";
ts.number = 5;
assertTrue(ts.isValid());
}
use of org.syncany.plugins.transfer.TransferPlugin in project syncany by syncany.
the class TestConfigUtil method createTestLocalConnection.
public static TransferSettings createTestLocalConnection() throws Exception {
TransferPlugin plugin = Plugins.get("local", TransferPlugin.class);
LocalTransferSettings conn = plugin.createEmptySettings();
File tempRepoDir = TestFileUtil.createTempDirectoryInSystemTemp(createUniqueName("repo", conn));
conn.setPath(tempRepoDir);
// TODO [medium] : possible problem
plugin.createTransferManager(conn, null).init(true);
return conn;
}
Aggregations