Search in sources :

Example 16 with PollResult

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"));
}
Also used : PollResult(com.netflix.config.PollResult) Test(org.junit.Test)

Aggregations

PollResult (com.netflix.config.PollResult)16 Test (org.junit.Test)14 URL (java.net.URL)3 AmazonDynamoDB (com.amazonaws.services.dynamodbv2.AmazonDynamoDB)2 ScanRequest (com.amazonaws.services.dynamodbv2.model.ScanRequest)2 File (java.io.File)1