@Test public void successfulCreationWithProperties() { URL resource = getClass().getResource("/valid-properties.xml"); Map<String,String> props = new HashMap<>(); props.put("a", "b"); props.put("b", "1"); SimplePropertySource source = new SimplePropertySource("test", props); assertThat(source).isNotNull(); assertThat(source.getProperties()).hasSize(2); assertThat(source.getProperties()).contains(entry("a", PropertyValue.createValue("a", "b").setMeta("source", "test"))); assertThat(source.getProperties()).contains(entry("b", PropertyValue.createValue("b", "1").setMeta("source", "test"))); }
@Override public Map<String, PropertyValue> getProperties() { return this.properties; }
SimplePropertySource extends BasePropertySource { @Override public Map<String, PropertyValue> getProperties() { return this.properties; } }
SimplePropertySource extends BasePropertySource { @Override public Map<String, PropertyValue> getProperties() { return this.properties; } SimplePropertySource(File propertiesLocation);  SimplePropertySource(URL propertiesLocation);  SimplePropertySource(String name, Map<String, String> properties, int defaultOrdinal);  SimplePropertySource(String name, Map<String, String> properties);  SimplePropertySource(String name, URL propertiesLocation); private  SimplePropertySource(Builder builder); }
SimplePropertySource extends BasePropertySource { @Override public Map<String, PropertyValue> getProperties() { return this.properties; } SimplePropertySource(File propertiesLocation);  SimplePropertySource(URL propertiesLocation);  SimplePropertySource(String name, Map<String, String> properties, int defaultOrdinal);  SimplePropertySource(String name, Map<String, String> properties);  SimplePropertySource(String name, URL propertiesLocation); private  SimplePropertySource(Builder builder); static Builder newBuilder(); @Override Map<String, PropertyValue> getProperties(); @Override ChangeSupport getChangeSupport(); }
SimplePropertySource extends BasePropertySource { @Override public Map<String, PropertyValue> getProperties() { return this.properties; } SimplePropertySource(File propertiesLocation);  SimplePropertySource(URL propertiesLocation);  SimplePropertySource(String name, Map<String, String> properties, int defaultOrdinal);  SimplePropertySource(String name, Map<String, String> properties);  SimplePropertySource(String name, URL propertiesLocation); private  SimplePropertySource(Builder builder); static Builder newBuilder(); @Override Map<String, PropertyValue> getProperties(); @Override ChangeSupport getChangeSupport();  }