mirror of
https://github.com/apache/struts.git
synced 2026-08-07 15:46:57 +00:00
Solves problem with overwhelming WARNS in log during testing
This commit is contained in:
+2
-2
@@ -727,7 +727,7 @@ public class XmlConfigurationProvider implements ConfigurationProvider {
|
||||
+ " Did you mean '" + guessResultType(resultType) + "'?", resultElement);
|
||||
}
|
||||
|
||||
String resultClass = config.getClazz();
|
||||
String resultClass = config.getClassName();
|
||||
|
||||
// invalid result type specified in result definition
|
||||
if (resultClass == null) {
|
||||
@@ -759,7 +759,7 @@ public class XmlConfigurationProvider implements ConfigurationProvider {
|
||||
}
|
||||
} else {
|
||||
if (LOG.isWarnEnabled()) {
|
||||
LOG.warn("no default parameter defined for result of type " + config.getName());
|
||||
LOG.warn("No default parameter defined for result [#0] of type [#1] ", config.getName(), config.getClassName());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ import com.opensymphony.xwork2.Result;
|
||||
*/
|
||||
public class MockResult implements Result {
|
||||
|
||||
public static final String DEFAULT_PARAM = null;
|
||||
public static final String DEFAULT_PARAM = "foo";
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
@@ -49,4 +49,9 @@ public class MockResult implements Result {
|
||||
public int hashCode() {
|
||||
return 10;
|
||||
}
|
||||
|
||||
public void setFoo(String foo) {
|
||||
// no op
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user