Package org.syncany.config

Examples of org.syncany.config.Config


  private Config config;

  @Before
  public void before() throws Exception {
    tmpFile = File.createTempFile("syncany-transfer-settings-test", "tmp");
    Config config = TestConfigUtil.createTestLocalConfig();
    assertNotNull(Plugins.get("dummy"));
    assertNotNull(config);
  }
View Full Code Here


  @Test
  public void testOperationPerformance() throws Exception {
    // Setup
    TransferSettings testConnection = TestConfigUtil.createTestLocalConnection();
   
    Config configA = TestConfigUtil.createTestLocalConfig("A", testConnection);
    Config configB = TestConfigUtil.createTestLocalConfig("B", testConnection);
   
    // Add new files on A and upload it
    TestFileUtil.createRandomFilesInDirectory(configA.getLocalDir(), 5000*1024, 3);
   
    long timeSyncUpStart = System.currentTimeMillis();
View Full Code Here

public class FileContentDaoTest {
  @Test
  public void testGetFileContentsByVectorClock() throws Exception {
    // Setup
    Config testConfig = TestConfigUtil.createTestLocalConfig();
    Connection databaseConnection = testConfig.createDatabaseConnection();

    // Run
    TestSqlUtil.runSqlFromResource(databaseConnection, "test.insert.set3.sql");

    FileContentSqlDao fileContentDao = new FileContentSqlDao(databaseConnection);
View Full Code Here

  }

  @Test
  public void testGetFileContentByChecksum() throws Exception {
    // Setup
    Config testConfig = TestConfigUtil.createTestLocalConfig();
    Connection databaseConnection = testConfig.createDatabaseConnection();

    // Run
    TestSqlUtil.runSqlFromResource(databaseConnection, "test.insert.set3.sql");

    FileContentSqlDao fileContentDao = new FileContentSqlDao(databaseConnection);
View Full Code Here

public class MultiChunkDaoTest {
  @Test
  public void testGetMultiChunkId() throws Exception {
    // Setup
    Config testConfig = TestConfigUtil.createTestLocalConfig();
    Connection databaseConnection = testConfig.createDatabaseConnection();

    // Run
    TestSqlUtil.runSqlFromResource(databaseConnection, "test.insert.set3.sql");

    MultiChunkSqlDao multiChunkDao = new MultiChunkSqlDao(databaseConnection);
View Full Code Here

  }
 
  @Test
  public void testGetMultiChunkIds() throws Exception {
    // Setup
    Config testConfig = TestConfigUtil.createTestLocalConfig();
    Connection databaseConnection = testConfig.createDatabaseConnection();

    // Run
    TestSqlUtil.runSqlFromResource(databaseConnection, "test.insert.set3.sql");

    MultiChunkSqlDao multiChunkDao = new MultiChunkSqlDao(databaseConnection);
View Full Code Here

  }
 
  @Test
  public void testGetMultiChunksByDatabaseVersion1() throws Exception {
    // Setup
    Config testConfig = TestConfigUtil.createTestLocalConfig();
    Connection databaseConnection = testConfig.createDatabaseConnection();

    // Run
    TestSqlUtil.runSqlFromResource(databaseConnection, "test.insert.set3.sql");

    MultiChunkSqlDao multiChunkDao = new MultiChunkSqlDao(databaseConnection);
View Full Code Here

  }
 
  @Test
  public void testGetMultiChunksByDatabaseVersion2() throws Exception {
    // Setup
    Config testConfig = TestConfigUtil.createTestLocalConfig();
    Connection databaseConnection = testConfig.createDatabaseConnection();

    // Run
    TestSqlUtil.runSqlFromResource(databaseConnection, "test.insert.set1.sql");

    MultiChunkSqlDao multiChunkDao = new MultiChunkSqlDao(databaseConnection);
View Full Code Here

  }
 
  @Test
  public void testGetMultiChunkIdsByFileChecksum() throws Exception {
    // Setup
    Config testConfig = TestConfigUtil.createTestLocalConfig();
    Connection databaseConnection = testConfig.createDatabaseConnection();

    // Run
    TestSqlUtil.runSqlFromResource(databaseConnection, "test.insert.set3.sql");

    MultiChunkSqlDao multiChunkDao = new MultiChunkSqlDao(databaseConnection);
View Full Code Here

  }
 
  @Test
  public void testGetDirtyMultiChunks() throws Exception {
    // Setup
    Config testConfig = TestConfigUtil.createTestLocalConfig();
    Connection databaseConnection = testConfig.createDatabaseConnection();

    // Run
    TestSqlUtil.runSqlFromResource(databaseConnection, "test.insert.set1.sql");

    MultiChunkSqlDao multiChunkDao = new MultiChunkSqlDao(databaseConnection);
View Full Code Here

TOP

Related Classes of org.syncany.config.Config

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.