@Test public void getPropertyFilters() throws Exception { Configuration cfg = new CoreConfigurationBuilder().build(); PropertyFilter testFilter = new PropertyFilter() { @Override public PropertyValue filterProperty(PropertyValue value, FilterContext ctx) { return value; } }; assertThat(cfg.getContext().getPropertyFilters()).isNotNull().doesNotContain(testFilter); cfg = cfg.toBuilder().addPropertyFilters(testFilter).build(); assertThat(cfg.getContext().getPropertyFilters()).contains(testFilter); }
@Override public ConfigurationBuilder toBuilder() { return new CoreConfigurationBuilder(this); }
CoreConfiguration extends DefaultConfiguration { @Override public ConfigurationBuilder toBuilder() { return new CoreConfigurationBuilder(this); } }
CoreConfiguration extends DefaultConfiguration { @Override public ConfigurationBuilder toBuilder() { return new CoreConfigurationBuilder(this); } CoreConfiguration(ConfigurationContext context); }
CoreConfiguration extends DefaultConfiguration { @Override public ConfigurationBuilder toBuilder() { return new CoreConfigurationBuilder(this); } CoreConfiguration(ConfigurationContext context); @Override ConfigurationBuilder toBuilder(); }
CoreConfiguration extends DefaultConfiguration { @Override public ConfigurationBuilder toBuilder() { return new CoreConfigurationBuilder(this); } CoreConfiguration(ConfigurationContext context); @Override ConfigurationBuilder toBuilder();  }