@Test public void removePropertyFilters_Array() throws Exception { PropertyFilter filter1 = (value, ctx) -> value; PropertyFilter filter2 = (value, ctx) -> value; ConfigurationBuilder b = new CoreConfigurationBuilder() .addPropertyFilters(filter1, filter2); Configuration cfg = b.build(); ConfigurationContext ctx = cfg.getContext(); assertThat(ctx.getPropertyFilters()).hasSize(2).contains(filter1, filter2); b = new CoreConfigurationBuilder() .addPropertyFilters(filter1, filter2); b.removePropertyFilters(filter1); cfg = b.build(); ctx = cfg.getContext(); assertThat(ctx.getPropertyFilters()).hasSize(1).contains(filter2); }
@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();  }