@Test public void testWithMap() { Map<String, String> propertyFirst = new HashMap<>(); propertyFirst.put("firstKey", "firstValue"); SimplePropertySource source = new SimplePropertySource("testWithMap", propertyFirst, 166); assertThat(source.getName()).isEqualTo("testWithMap"); assertThat(source.getDefaultOrdinal()).isEqualTo(166); assertThat(source.getProperties()).containsKey("firstKey"); }
@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();  }