Package org.syncany.plugins.transfer

Examples of org.syncany.plugins.transfer.TransferSettings


public class DirtyDatabaseScenarioTest {
  @Test
  public void testDirtyDatabase() throws Exception {
    // Setup
    TransferSettings testConnection = TestConfigUtil.createTestLocalConnection();
   
    TestClient clientA = new TestClient("A", testConnection);
    TestClient clientB = new TestClient("B", testConnection);
   
    // Run
View Full Code Here


  }

  @Test
  public void testDirtyCleanupDirty() throws Exception {
    // Setup
    TransferSettings testConnection = TestConfigUtil.createTestLocalConnection();
   
    TestClient clientA = new TestClient("A", testConnection);
    TestClient clientB = new TestClient("B", testConnection);
    TestClient clientC = new TestClient("C", testConnection);
    TestClient clientD = new TestClient("D", testConnection);
View Full Code Here

   * The WatchServerTest tests all things WatchServer.
   * This is one single test to prevent issues with parallelism. (Occupied ports, EventBus mixups etc.)
   */
  @Test
  public void testWatchServer() throws Exception {
    final TransferSettings testConnection = TestConfigUtil.createTestLocalConnection();   
    final TestClient clientA = new TestClient("ClientA", testConnection);
    final TestClient clientB = new TestClient("ClientB", testConnection);
    int port = 58443;
   
    // Load config template
View Full Code Here

public class Issue143ScenarioTest {
  @Test
  public void testChangeAttributes() throws Exception {   
    // Setup
    TransferSettings testConnection = TestConfigUtil.createTestLocalConnection();   
   
    TestClient clientA = new TestClient("A", testConnection);
    java.sql.Connection databaseConnectionA = clientA.getConfig().createDatabaseConnection();
   
    TestClient clientB = new TestClient("B", testConnection);
View Full Code Here

public class EmptyFolderScenarioTest {
  @Test
  public void testEmptyFolderCreateAndSync() throws Exception {
    // Setup
    TransferSettings testConnection = TestConfigUtil.createTestLocalConnection();
   
    TestClient clientA = new TestClient("A", testConnection);
    TestClient clientB = new TestClient("B", testConnection);
   
    // Run
View Full Code Here

    if (option instanceof NestedTransferPluginOption) {
      assertNotNull(ReflectionUtil.getClassFromType(option.getType()));
      System.out.println(new String(new char[wrap]).replace("\0", "\t") + ReflectionUtil.getClassFromType(option.getType()) + "#"
          + option.getField().getName() + " (nested)");
      TransferSettings nestedSettings = (TransferSettings) ReflectionUtil.getClassFromType(option.getType()).newInstance();
      settings.setField(option.getField().getName(), nestedSettings);

      for (TransferPluginOption nItem : ((NestedTransferPluginOption) option).getOptions()) {
        askNestedPluginSettings(nestedSettings, nItem, ++wrap);
      }
View Full Code Here

public class FileSystemActionReconciliatorTest {
  @Test
  public void testFileSystemActionReconDeleteNonExistingFolder() throws Exception {
    // Setup
    TransferSettings testConnection = TestConfigUtil.createTestLocalConnection();
   
    TestClient clientA = new TestClient("A", testConnection);
    Config testConfigA = clientA.getConfig();
   
    // - Create first database version
View Full Code Here

    // Scenario: A ignores a file, creates it then ups, B should not have the file
   
    // Setup
    File tempDir = TestFileUtil.createTempDirectoryInSystemTemp();
   
    TransferSettings testConnection = TestConfigUtil.createTestLocalConnection();   
    TestClient clientA = new TestClient("A", testConnection);
    TestClient clientB = new TestClient("B", testConnection);
   
    //Create ignore file and reload it
    File syncanyIgnore = clientA.getLocalFile(Config.FILE_IGNORE);
View Full Code Here

    // Scenario: A ignores files with a regular expression, creates it then ups, B should not have the file

    // Setup
    File tempDir = TestFileUtil.createTempDirectoryInSystemTemp();
   
    TransferSettings testConnection = TestConfigUtil.createTestLocalConnection();   
    TestClient clientA = new TestClient("A", testConnection);
    TestClient clientB = new TestClient("B", testConnection);
   
    //Create ignore file and reload it
    File syncanyIgnore = clientA.getLocalFile(Config.FILE_IGNORE);
View Full Code Here

    // Scenario: A ignores files with a regular expression, creates it then ups, B should not have the file

    // Setup
    File tempDir = TestFileUtil.createTempDirectoryInSystemTemp();
   
    TransferSettings testConnection = TestConfigUtil.createTestLocalConnection();   
    TestClient clientA = new TestClient("A", testConnection);
    TestClient clientB = new TestClient("B", testConnection);
   
    //Create ignore file and reload it
    File syncanyIgnore = clientA.getLocalFile(Config.FILE_IGNORE);
View Full Code Here

TOP

Related Classes of org.syncany.plugins.transfer.TransferSettings

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.