use of com.synopsys.integration.configuration.source.PropertySource in project synopsys-detect by blackducksoftware.
the class PropertyConfigurationTest method getRawPassthroughMultipleValues.
@Test
public void getRawPassthroughMultipleValues() {
PassthroughProperty passthrough = new PassthroughProperty("pass");
PropertySource secondarySource = propertySourceOf("secondary", Pair.of("pass.two", "two value"), Pair.of("ignore", "ignore value"));
PropertySource primarySource = propertySourceOf("primary", Pair.of("pass.one", "one value"));
PropertyConfiguration configuration = configOf(primarySource, secondarySource);
Map<String, String> properties = Bds.mapOf(Pair.of("one", "one value"), Pair.of("two", "two value"));
Assertions.assertEquals(properties, configuration.getRaw(passthrough));
}
Aggregations