mirror of
https://github.com/apache/struts.git
synced 2026-08-07 15:46:57 +00:00
Fixes failing test
This commit is contained in:
+2
-2
@@ -60,7 +60,7 @@ public class StrutsConversionErrorInterceptorTest extends StrutsInternalTestCase
|
||||
assertNull(action.getFieldErrors().get("foo"));
|
||||
assertNull(action.getFieldErrors().get("bar"));
|
||||
assertNull(action.getFieldErrors().get("baz"));
|
||||
interceptor.intercept(invocation);
|
||||
interceptor.doIntercept(invocation);
|
||||
assertTrue(action.hasFieldErrors());
|
||||
assertNotNull(action.getFieldErrors().get("foo"));
|
||||
assertNull(action.getFieldErrors().get("bar"));
|
||||
@@ -75,7 +75,7 @@ public class StrutsConversionErrorInterceptorTest extends StrutsInternalTestCase
|
||||
stack.push(action);
|
||||
mockInvocation.matchAndReturn("getAction",action);
|
||||
assertNull(action.getFieldErrors().get("foo"));
|
||||
interceptor.intercept(invocation);
|
||||
interceptor.doIntercept(invocation);
|
||||
assertTrue(action.hasFieldErrors());
|
||||
assertNotNull(action.getFieldErrors().get("foo"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user