@Test @SuppressWarnings("unchecked") public void resolve_list_spel_variable() throws Exception { Object listVariable = resolver.resolve("list_spel_variable", Object.class); assertThat(listVariable).isInstanceOf(List.class); assertThat((List<String>) listVariable).containsExactly("item true", "item false", "item 3"); }
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);  }