@Test public void test_parsing_expanded_values_does_not_add_defaults() throws URISyntaxException, IOException { Properties expectedProps = Props.load(Paths.get(getClass().getResource("/config-property-files/config_expanded_default.properties").toURI())); Cluster expectedCluster = new ClusterFactory().create(expectedProps); assertThat( "\nclusterWithDefaults: " + json.writeValueAsString(clusterWithDefaults) + "\nexpectedCluster: " + json.writeValueAsString(expectedCluster), expectedCluster, is(equalTo(clusterWithDefaults))); }
public Cluster create(Path configFile) { return create(Props.load(configFile)); }
ClusterFactory { public Cluster create(Path configFile) { return create(Props.load(configFile)); } }
ClusterFactory { public Cluster create(Path configFile) { return create(Props.load(configFile)); } ClusterFactory();  ClusterFactory(Version version); }
ClusterFactory { public Cluster create(Path configFile) { return create(Props.load(configFile)); } ClusterFactory();  ClusterFactory(Version version); Cluster create(Path configFile); Cluster create(Properties properties); Cluster create(Properties properties, Consumer<Configuration> added); Cluster create(Map<Setting, String> paramValueMap, IParameterSubstitutor parameterSubstitutor); }
ClusterFactory { public Cluster create(Path configFile) { return create(Props.load(configFile)); } ClusterFactory();  ClusterFactory(Version version); Cluster create(Path configFile); Cluster create(Properties properties); Cluster create(Properties properties, Consumer<Configuration> added); Cluster create(Map<Setting, String> paramValueMap, IParameterSubstitutor parameterSubstitutor);  }