use of org.syncany.plugins.unreliable_local.UnreliableLocalTransferSettings in project syncany by syncany.
the class TestConfigUtil method createTestUnreliableLocalConnectionWithoutInit.
public static UnreliableLocalTransferSettings createTestUnreliableLocalConnectionWithoutInit(UnreliableLocalTransferPlugin unreliableLocalPlugin, List<String> failingOperationPatterns) throws Exception {
UnreliableLocalTransferSettings unreliableLocalConnection = unreliableLocalPlugin.createEmptySettings();
File tempRepoDir = TestFileUtil.createTempDirectoryInSystemTemp(createUniqueName("repo", new Random().nextFloat()));
unreliableLocalConnection.setPath(tempRepoDir);
unreliableLocalConnection.setFailingOperationPatterns(failingOperationPatterns);
return unreliableLocalConnection;
}
Aggregations