@Test public void testLoadSimpleBackwardsCompatible() { Map<String, String> env = new HashMap<String, String>() {{ put("swarm.name", "bob"); put("swarm.cheese", "cheddar"); put("not.swarm.taco", "crunchy"); put("swarm.foobar", "<<null>>"); }}; ConfigNode node = EnvironmentConfigNodeFactory.load(env); assertThat(node.valueOf(ConfigKey.parse("thorntail.name"))).isEqualTo("bob"); assertThat(node.valueOf(ConfigKey.parse("thorntail.cheese"))).isEqualTo("cheddar"); assertThat(node.valueOf(ConfigKey.parse("not.thorntail.taco"))).isNull(); assertThat(node.valueOf(ConfigKey.parse("thorntail.foobar"))).isNull(); }
public static ConfigNode load(Map<String, String> input) { ConfigNode config = new ConfigNode(); load(config, input); return config; }
EnvironmentConfigNodeFactory { public static ConfigNode load(Map<String, String> input) { ConfigNode config = new ConfigNode(); load(config, input); return config; } }
EnvironmentConfigNodeFactory { public static ConfigNode load(Map<String, String> input) { ConfigNode config = new ConfigNode(); load(config, input); return config; } private  EnvironmentConfigNodeFactory(); }
EnvironmentConfigNodeFactory { public static ConfigNode load(Map<String, String> input) { ConfigNode config = new ConfigNode(); load(config, input); return config; } private  EnvironmentConfigNodeFactory(); static ConfigNode load(Map<String, String> input); }
EnvironmentConfigNodeFactory { public static ConfigNode load(Map<String, String> input) { ConfigNode config = new ConfigNode(); load(config, input); return config; } private  EnvironmentConfigNodeFactory(); static ConfigNode load(Map<String, String> input);  }