/** * Tests the ability to get a property as an Enum. */ @Test public void testGetEnum() throws Exception { Properties props = new Properties(); populateData(props); testData(props, (TypedProperties config, Property<TestEnum> property) -> config.getEnum(property, TestEnum.class), TypedPropertiesTests::isEnum); }
this.zkSessionTimeoutMs = properties.getInt(ZK_SESSION_TIMEOUT_MS); this.clusterName = properties.get(CLUSTER_NAME); this.dataLogTypeImplementation = properties.getEnum(DATALOG_IMPLEMENTATION, DataLogType.class); this.storageImplementation = properties.getEnum(STORAGE_IMPLEMENTATION, StorageType.class); this.readOnlySegmentStore = properties.getBoolean(READONLY_SEGMENT_STORE); this.secureZK = properties.getBoolean(SECURE_ZK);