use of com.netflix.config.PollResult in project java-chassis by ServiceComb.
the class TestYAMLConfigurationSource method testPullFromClassPath.
@Test
public void testPullFromClassPath() throws Exception {
MicroserviceConfigurationSource configSource = yamlConfigSource();
PollResult result = configSource.poll(true, null);
Map<String, Object> configMap = result.getComplete();
assertNotNull(configMap);
assertEquals(29, configMap.size());
assertNotNull(configMap.get("trace.handler.sampler.percent"));
assertEquals(0.5, configMap.get("trace.handler.sampler.percent"));
}
Aggregations