Search in sources :

Example 6 with DummyTransferSettings

use of org.syncany.plugins.dummy.DummyTransferSettings in project syncany by syncany.

the class TransferSettingsTest method testEnumSettingValid.

@Test
public void testEnumSettingValid() throws Exception {
    final String enumValue = "A";
    DummyTransferSettings testTransferSettings = new DummyTransferSettings();
    testTransferSettings.setField("enumField", enumValue);
    assertEquals(DummyTransferSettings.DummyEnum.A, testTransferSettings.enumField);
    final String enumValueLower = "a";
    testTransferSettings = new DummyTransferSettings();
    testTransferSettings.setField("enumField", enumValueLower);
    assertEquals(DummyTransferSettings.DummyEnum.A, testTransferSettings.enumField);
}
Also used : DummyTransferSettings(org.syncany.plugins.dummy.DummyTransferSettings) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)6 DummyTransferSettings (org.syncany.plugins.dummy.DummyTransferSettings)6 DummyTransferPlugin (org.syncany.plugins.dummy.DummyTransferPlugin)3 TransferPlugin (org.syncany.plugins.transfer.TransferPlugin)3 File (java.io.File)1 Ignore (org.junit.Ignore)1 Serializer (org.simpleframework.xml.Serializer)1 Persister (org.simpleframework.xml.core.Persister)1 ConfigTO (org.syncany.config.to.ConfigTO)1 InitOperationOptions (org.syncany.operations.init.InitOperationOptions)1 DummyTransferManager (org.syncany.plugins.dummy.DummyTransferManager)1 LocalTransferSettings (org.syncany.plugins.local.LocalTransferSettings)1 NestedTransferPluginOption (org.syncany.plugins.transfer.NestedTransferPluginOption)1 TransferPluginOption (org.syncany.plugins.transfer.TransferPluginOption)1 TransferSettings (org.syncany.plugins.transfer.TransferSettings)1