@Test @SuppressWarnings("unchecked") public void resolve_list_of_complex() throws Exception { Object list = resolver.resolve("list_of_complex", Object.class); assertThat(list).isInstanceOf(Collection.class); assertThat(((Collection<Object>) list)).hasSize(2); assertThat(((Collection<Object>) list)).containsExactly( ImmutableMap.of("item10", "value10", "item11", "value11"), ImmutableMap.of("item20", "value20", "item21", "value21") ); }
public <T> T resolve(String variableName, Class<T> clazz) { if (!resolver.containsProperty(variableName)) { throw new UnknownVariableException(variableName); } return resolver.getProperty(variableName, clazz); }
VariableResolver { public <T> T resolve(String variableName, Class<T> clazz) { if (!resolver.containsProperty(variableName)) { throw new UnknownVariableException(variableName); } return resolver.getProperty(variableName, clazz); } }
VariableResolver { public <T> T resolve(String variableName, Class<T> clazz) { if (!resolver.containsProperty(variableName)) { throw new UnknownVariableException(variableName); } return resolver.getProperty(variableName, clazz); } VariableResolver(PropertySource appVariables, PropertySource envTypeVariables, PropertySource envVariables, AlienContextVariables alienContextVariables);  VariableResolver(Properties appVariables, Properties envTypeVariables, Properties envVariables, AlienContextVariables alienContextVariables); }
VariableResolver { public <T> T resolve(String variableName, Class<T> clazz) { if (!resolver.containsProperty(variableName)) { throw new UnknownVariableException(variableName); } return resolver.getProperty(variableName, clazz); } VariableResolver(PropertySource appVariables, PropertySource envTypeVariables, PropertySource envVariables, AlienContextVariables alienContextVariables);  VariableResolver(Properties appVariables, Properties envTypeVariables, Properties envVariables, AlienContextVariables alienContextVariables); T resolve(String variableName, Class<T> clazz); String resolve(String variableName); }
VariableResolver { public <T> T resolve(String variableName, Class<T> clazz) { if (!resolver.containsProperty(variableName)) { throw new UnknownVariableException(variableName); } return resolver.getProperty(variableName, clazz); } VariableResolver(PropertySource appVariables, PropertySource envTypeVariables, PropertySource envVariables, AlienContextVariables alienContextVariables);  VariableResolver(Properties appVariables, Properties envTypeVariables, Properties envVariables, AlienContextVariables alienContextVariables); T resolve(String variableName, Class<T> clazz); String resolve(String variableName);  }