Solves problem with overwhelming WARNS in log during testing

This commit is contained in:
Lukasz Lenart
2014-08-13 10:33:13 +02:00
parent 120830f1ac
commit 08ad1199ed
2 changed files with 8 additions and 3 deletions
@@ -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
}
}