Search in sources :

Example 1 with DaemonOperation

use of org.syncany.operations.daemon.DaemonOperation in project syncany by syncany.

the class DaemonCommand method execute.

@Override
public int execute(String[] operationArgs) throws Exception {
    DaemonOperationOptions operationOptions = parseOptions(operationArgs);
    DaemonOperationResult operationResult = new DaemonOperation(operationOptions).execute();
    printResults(operationResult);
    return 0;
}
Also used : DaemonOperation(org.syncany.operations.daemon.DaemonOperation) DaemonOperationResult(org.syncany.operations.daemon.DaemonOperationResult) DaemonOperationOptions(org.syncany.operations.daemon.DaemonOperationOptions)

Example 2 with DaemonOperation

use of org.syncany.operations.daemon.DaemonOperation in project syncany by syncany.

the class DaemonOperationTest method setUp.

@Before
public void setUp() throws Exception {
    options = mock(DaemonOperationOptions.class);
    deamonOp = new DaemonOperation(options);
}
Also used : DaemonOperation(org.syncany.operations.daemon.DaemonOperation) DaemonOperationOptions(org.syncany.operations.daemon.DaemonOperationOptions) Before(org.junit.Before)

Aggregations

DaemonOperation (org.syncany.operations.daemon.DaemonOperation)2 DaemonOperationOptions (org.syncany.operations.daemon.DaemonOperationOptions)2 Before (org.junit.Before)1 DaemonOperationResult (org.syncany.operations.daemon.DaemonOperationResult)1