Examples of plugin()


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

    PluginOperationOptions pluginOptions = new PluginOperationOptions();
    pluginOptions.setAction(PluginAction.LIST);
    pluginOptions.setListMode(PluginListMode.REMOTE);
    pluginOptions.setSnapshots(false);

    PluginOperationResult pluginResult = client.plugin(pluginOptions);

    String pluginDownloadUrl = null;
    for (ExtendedPluginInfo pluginInfo : pluginResult.getPluginList()) {
      if (pluginInfo.getRemotePluginInfo().getPluginId().equals("ftp")) {
        pluginDownloadUrl = pluginInfo.getRemotePluginInfo().getDownloadUrl();
View Full Code Here

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

    pluginOptions = new PluginOperationOptions();
    pluginOptions.setAction(PluginAction.INSTALL);
    pluginOptions.setPluginId(pluginDownloadUrl);

    pluginResult = client.plugin(pluginOptions);

    assertNotNull(pluginResult);
    assertEquals(PluginResultCode.OK, pluginResult.getResultCode());

    // Only one file should be in here: the jar for ftp.
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.