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);
}
Aggregations