use of com.opensymphony.xwork2.util.location.Location in project struts-examples by apache.
the class ConfigTest method assertResult.
protected void assertResult(ActionConfig config, String result_name, String result_value) {
Map<String, ResultConfig> results = config.getResults();
ResultConfig result = results.get(result_name);
Map<String, String> params = result.getParams();
String value = params.get("actionName");
if (value == null) {
value = params.get("location");
}
assertEquals("Wrong result value: [" + value + "]", result_value, value);
}
Aggregations