@Test public void addPropertySources_Array() throws Exception { PropertySource testPS2 = new TestPropertySource("addPropertySources_Array_2"); ConfigurationBuilder b = new CoreConfigurationBuilder() .addPropertySources(testPropertySource, testPS2); Configuration cfg = b.build(); ConfigurationContext ctx = cfg.getContext(); assertThat(ctx.getPropertySources()).hasSize(2).contains(testPropertySource, testPS2); }
@Override public Configuration build() { Configuration cfg = new CoreConfiguration( new DefaultConfigurationContext( serviceContext, this.propertyFilters, this.propertySources, this.propertyConverters, this.metaDataProvider )); built = true; return cfg; }
CoreConfigurationBuilder extends DefaultConfigurationBuilder { @Override public Configuration build() { Configuration cfg = new CoreConfiguration( new DefaultConfigurationContext( serviceContext, this.propertyFilters, this.propertySources, this.propertyConverters, this.metaDataProvider )); built = true; return cfg; } }
CoreConfigurationBuilder extends DefaultConfigurationBuilder { @Override public Configuration build() { Configuration cfg = new CoreConfiguration( new DefaultConfigurationContext( serviceContext, this.propertyFilters, this.propertySources, this.propertyConverters, this.metaDataProvider )); built = true; return cfg; } CoreConfigurationBuilder();  CoreConfigurationBuilder(Configuration config);  CoreConfigurationBuilder(ConfigurationContext context); }
CoreConfigurationBuilder extends DefaultConfigurationBuilder { @Override public Configuration build() { Configuration cfg = new CoreConfiguration( new DefaultConfigurationContext( serviceContext, this.propertyFilters, this.propertySources, this.propertyConverters, this.metaDataProvider )); built = true; return cfg; } CoreConfigurationBuilder();  CoreConfigurationBuilder(Configuration config);  CoreConfigurationBuilder(ConfigurationContext context); @Override Configuration build(); }
CoreConfigurationBuilder extends DefaultConfigurationBuilder { @Override public Configuration build() { Configuration cfg = new CoreConfiguration( new DefaultConfigurationContext( serviceContext, this.propertyFilters, this.propertySources, this.propertyConverters, this.metaDataProvider )); built = true; return cfg; } CoreConfigurationBuilder();  CoreConfigurationBuilder(Configuration config);  CoreConfigurationBuilder(ConfigurationContext context); @Override Configuration build();  }