Package org.syncany.plugins.dummy

Examples of org.syncany.plugins.dummy.DummyTransferSettings


  @Test
  @Ignore
  // TODO rewrite to make this test work again with generic nested transfer settings
  public void nestedSettingsTest() throws Exception {
    DummyTransferSettings dts = new DummyTransferSettings();

    for (TransferPluginOption option : TransferPluginOptions.getOrderedOptions(DummyTransferSettings.class)) {
      askNestedPluginSettings(dts, option, 0);
    }
View Full Code Here


    final String fooTest = "foo-test";
    final String bazTest = "baz";
    final int numberTest = 1234;

    final DummyTransferSettings ts = new DummyTransferSettings();
    final LocalTransferSettings lts = new LocalTransferSettings();
    final ConfigTO conf = TestConfigUtil.createTestInitOperationOptions("syncanytest").getConfigTO();

    conf.setTransferSettings(ts);

    ts.foo = fooTest;
    ts.baz = bazTest;
    ts.number = numberTest;
    lts.setPath(File.createTempFile("aaa", "bbb"));
    ts.subsettings = lts;

    assertTrue(ts.isValid());

    Serializer serializer = new Persister();
    serializer.write(conf, tmpFile);

    System.out.println(new String(Files.readAllBytes(Paths.get(tmpFile.toURI()))));
View Full Code Here

  }

  @Test
  public void createNewValidConnectionTO() throws Exception {
    TransferPlugin p = Plugins.get("dummy", TransferPlugin.class);
    DummyTransferSettings ts = p.createEmptySettings();
    ts.foo = "foo-value";
    ts.number = 5;

    assertTrue(ts.isValid());
  }
View Full Code Here

  }

  @Test
  public void createNewInvalidConnectionTO() throws Exception {
    TransferPlugin p = Plugins.get("dummy", TransferPlugin.class);
    DummyTransferSettings ts = p.createEmptySettings();

    assertFalse(ts.isValid());
  }
View Full Code Here

TOP

Related Classes of org.syncany.plugins.dummy.DummyTransferSettings

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.