Package org.syncany.tests.scenarios.framework

Examples of org.syncany.tests.scenarios.framework.Executable


    ClientActions.run(clientA, null,
      new AbstractClientAction[] {
        new CreateFileTree(),
        new ChangeTypeFileToFolder(),
      },
      new Executable() {
        @Override
        public void execute() throws Exception {
          clientA.upWithForceChecksum();   
         
          clientB.down();
View Full Code Here


  public void testLockUnlockFile() throws Exception {
    final TransferSettings testConnection = TestConfigUtil.createTestLocalConnection();
    final TestClient clientA = new TestClient("A", testConnection);
    final TestClient clientB = new TestClient("B", testConnection);

    ClientActions.run(clientA, null, new CreateFileTree(), new Executable() {
      @Override
      public void execute() throws Exception {
        clientA.upWithForceChecksum();

        clientB.down();
        assertFileListEquals(clientA.getLocalFilesExcludeLockedAndNoRead(), clientB.getLocalFilesExcludeLockedAndNoRead());
        assertSqlDatabaseEquals(clientA.getDatabaseFile(), clientB.getDatabaseFile());
      }
    });

    ClientActions.run(clientA, null, new LockFile(), new Executable() {
      @Override
      public void execute() throws Exception {
        clientA.upWithForceChecksum();

        clientB.down();
        assertEquals(clientA.getLocalFilesExcludeLockedAndNoRead().size(), clientB.getLocalFilesExcludeLockedAndNoRead().size() - 1);
      }
    });

    ClientActions.run(clientA, null, new UnlockFile(), new Executable() {
      @Override
      public void execute() throws Exception {
        clientA.upWithForceChecksum();

        clientB.down();
View Full Code Here

    final TransferSettings testConnection = TestConfigUtil.createTestLocalConnection();   
    final TestClient clientA = new TestClient("A", testConnection);
    final TestClient clientB = new TestClient("B", testConnection);
   
    ClientActions.run(clientA,
      new Executable() {
        @Override
        public void execute() throws Exception {
          // Nothing.
         }     
      },
      new AbstractClientAction[] {
        new CreateFileTree(),
       
        new ChangeContentWithoutFileSize(),
        new ChangeFileSize(),
        new ChangeLastModifiedDate(),
        new ChangePermissionsOfFile(),
        new ChangePermissionsOfFolder(),
        new ChangeSymlinkTarget(),   
        new ChangeTypeFileToFolder(),
        new ChangeTypeFileToSymlinkWithNonExistingTarget(),
        new ChangeTypeFileToSymlinkWithTargetFile(),
        new ChangeTypeFileToSymlinkWithTargetFolder(),
        new ChangeTypeSymlinkWithNonExistingTargetToFile(),
        new ChangeTypeSymlinkWithTargetFileToFile(),
        new ChangeTypeSymlinkWithTargetFolderToFile(),
        new ChangeTypeSymlinkWithNonExistingTargetToFolder(),
        new ChangeTypeSymlinkWithTargetFileToFolder(),
        new ChangeTypeSymlinkWithTargetFolderToFolder(),
        new ChangeTypeFolderToFile(),
        new ChangeTypeFolderToSymlinkWithNonExistingTarget(),
        new ChangeTypeFolderToSymlinkWithTargetFile(),
        new ChangeTypeFolderToSymlinkWithTargetFolder(),
        new CreateFile(),
        new CreateFolder(),
        new CreateSymlinkToFile(),
        new CreateSymlinkToFolder(),
        new CreateSymlinkToNonExisting(),
        new DeleteFile(),
        new DeleteFolder(),       
        new MoveFileToOtherFolder(),
        new MoveFileWithinFolder(),
        new MoveFolderToOtherFolder(),
        new MoveFolderWithinFolder(),
       
        //new LockFile() and new UnlockFile() are not compatible with these tests
      },
      new Executable() {
        @Override
        public void execute() throws Exception {
          clientA.upWithForceChecksum();   
         
          clientB.down();
View Full Code Here

TOP

Related Classes of org.syncany.tests.scenarios.framework.Executable

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.