Search in sources :

Example 1 with ServerConnectionTestException

use of org.opendatakit.briefcase.operations.ServerConnectionTestException in project briefcase by opendatakit.

the class ServerConnectionTest method testPush.

public static void testPush(ServerConnectionInfo transferSettings) {
    ServerConnectionTest test = new ServerConnectionTest(transferSettings, new TerminationFuture(), true);
    test.run();
    if (!test.isSuccessful())
        throw new ServerConnectionTestException();
}
Also used : ServerConnectionTestException(org.opendatakit.briefcase.operations.ServerConnectionTestException) TerminationFuture(org.opendatakit.briefcase.model.TerminationFuture)

Example 2 with ServerConnectionTestException

use of org.opendatakit.briefcase.operations.ServerConnectionTestException in project briefcase by opendatakit.

the class ServerConnectionTest method testPull.

public static void testPull(ServerConnectionInfo transferSettings) {
    ServerConnectionTest test = new ServerConnectionTest(transferSettings, new TerminationFuture(), false);
    test.run();
    if (!test.isSuccessful())
        throw new ServerConnectionTestException();
}
Also used : ServerConnectionTestException(org.opendatakit.briefcase.operations.ServerConnectionTestException) TerminationFuture(org.opendatakit.briefcase.model.TerminationFuture)

Aggregations

TerminationFuture (org.opendatakit.briefcase.model.TerminationFuture)2 ServerConnectionTestException (org.opendatakit.briefcase.operations.ServerConnectionTestException)2