Package org.syncany.tests.util

Examples of org.syncany.tests.util.TestClient.createNewFile()


        }
            ));

    TestClient clientA = new TestClient("A", testConnection);

    clientA.createNewFile("A-original", 5 * 1024 * 1024); // << larger than one multichunk!

    boolean firstUpFailed = false;

    try {
      clientA.up();
View Full Code Here


        }
            ));

    TestClient clientA = new TestClient("A", testConnection);

    clientA.createNewFile("A-original", 5 * 1024 * 1024); // << larger than one multichunk!

    boolean firstUpFailed = false;

    try {
      clientA.up();
View Full Code Here

   
    clientB.down();
    assertFileListEquals(clientA.getLocalFilesExcludeLockedAndNoRead(), clientB.getLocalFilesExcludeLockedAndNoRead());
    assertSqlDatabaseEquals(clientA.getDatabaseFile(), clientB.getDatabaseFile());
   
    clientB.createNewFile("B-file2", 0);
    clientB.moveFile("A-file1.jpg", "B-file1-moved");
    clientB.up();
   
    SqlDatabase database = clientB.loadLocalDatabase();
    DatabaseVersionHeader lastDatabaseVersionHeaderBeforeUp = database.getLastDatabaseVersionHeader();
View Full Code Here

    TestClient clientA = new TestClient("A", testConnection);

    int i = 0;
    while (i++ < 5) {
      clientA.createNewFile("A-original-" + i, 50 * 1024);

      try {
        Thread.sleep(100);
        clientA.up();
        clientA.down();
View Full Code Here

        }
            ));

    TestClient clientA = new TestClient("A", testConnection);

    clientA.createNewFile("A-original", 10);

    boolean upFailed = false;

    try {
      clientA.up();
View Full Code Here

            ));

    TestClient clientA = new TestClient("A", testConnection);

    // 1. First upload fails
    clientA.createNewFile("A-original", 10);

    boolean upFailed = false;

    try {
      clientA.up();
View Full Code Here

        }
            ));

    TestClient clientA = new TestClient("A", testConnection);

    clientA.createNewFile("A-original", 5 * 1024 * 1024); // << larger than one multichunk!

    boolean upFailed = false;

    try {
      clientA.up();
View Full Code Here

    upOptionsForceEnabled.setForceUploadEnabled(true);
   
    clientA.createNewFile("A-file1.jpg", 50*1024);
    clientA.up(upOptionsForceEnabled);
       
    clientB.createNewFile("A-file1.jpg", 51*1024);
    clientB.up(upOptionsForceEnabled);
   
    clientB.down(); // This creates a dirty database       
   
    // Test (for dirty database existence)
View Full Code Here

    clientA.createNewFile("A5,C4");
    clientA.up();

    clientC.createNewFile("A3,C5");
    clientC.up();
    clientC.createNewFile("A3,C6");
    clientC.up();
    clientC.createNewFile("A3,C7");
    clientC.up();
   
    clientB.createNewFile("A3,B2,C4");
View Full Code Here

    clientC.createNewFile("A3,C5");
    clientC.up();
    clientC.createNewFile("A3,C6");
    clientC.up();
    clientC.createNewFile("A3,C7");
    clientC.up();
   
    clientB.createNewFile("A3,B2,C4");
    clientB.up();       
    clientB.createNewFile("A3,B3,C4");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.