use of org.apache.kafka.common.config.ConfigData in project kafka by apache.
the class FileConfigProviderTest method testNullPathWithKey.
@Test
public void testNullPathWithKey() throws Exception {
ConfigData configData = configProvider.get(null, Collections.singleton("testKey"));
assertTrue(configData.data().isEmpty());
assertNull(configData.ttl());
}
use of org.apache.kafka.common.config.ConfigData in project kafka by apache.
the class FileConfigProviderTest method testGetAllKeysAtPath.
@Test
public void testGetAllKeysAtPath() throws Exception {
ConfigData configData = configProvider.get("dummy");
Map<String, String> result = new HashMap<>();
result.put("testKey", "testResult");
result.put("testKey2", "testResult2");
assertEquals(result, configData.data());
assertNull(configData.ttl());
}
use of org.apache.kafka.common.config.ConfigData in project kafka by apache.
the class FileConfigProviderTest method testEmptyPathWithKey.
@Test
public void testEmptyPathWithKey() throws Exception {
ConfigData configData = configProvider.get("");
assertTrue(configData.data().isEmpty());
assertNull(configData.ttl());
}
use of org.apache.kafka.common.config.ConfigData in project kafka by apache.
the class FileConfigProviderTest method testEmptyPath.
@Test
public void testEmptyPath() throws Exception {
ConfigData configData = configProvider.get("", Collections.singleton("testKey"));
assertTrue(configData.data().isEmpty());
assertNull(configData.ttl());
}
use of org.apache.kafka.common.config.ConfigData in project kafka by apache.
the class FileConfigProviderTest method testNullPath.
@Test
public void testNullPath() throws Exception {
ConfigData configData = configProvider.get(null);
assertTrue(configData.data().isEmpty());
assertNull(configData.ttl());
}
Aggregations