[WW-4528] correcting testTwoExcludesPropertiesChained unit test Project: http://git-wip-us.apache.org/repos/asf/struts/repo Commit: http://git-wip-us.apache.org/repos/asf/struts/commit/7140e019 Tree: http://git-wip-us.apache.org/repos/asf/struts/tree/7140e019 Diff: http://git-wip-us.apache.org/repos/asf/struts/diff/7140e019
Branch: refs/heads/master Commit: 7140e0192b537f1ff388fbf00758b591a9cdeb6f Parents: 0437efc Author: Yasser Zamani <y.zaman...@gmail.com> Authored: Fri Feb 3 02:37:17 2017 +0330 Committer: Yasser Zamani <y.zaman...@gmail.com> Committed: Fri Feb 3 02:37:17 2017 +0330 ---------------------------------------------------------------------- .../xwork2/interceptor/ChainingInterceptorTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/struts/blob/7140e019/core/src/test/java/com/opensymphony/xwork2/interceptor/ChainingInterceptorTest.java ---------------------------------------------------------------------- diff --git a/core/src/test/java/com/opensymphony/xwork2/interceptor/ChainingInterceptorTest.java b/core/src/test/java/com/opensymphony/xwork2/interceptor/ChainingInterceptorTest.java index 8c18ee5..6fdcf78 100644 --- a/core/src/test/java/com/opensymphony/xwork2/interceptor/ChainingInterceptorTest.java +++ b/core/src/test/java/com/opensymphony/xwork2/interceptor/ChainingInterceptorTest.java @@ -130,8 +130,9 @@ public class ChainingInterceptorTest extends XWorkTestCase { assertEquals(bean.getBirth(), action.getBirth()); assertEquals(null, action.getName()); assertEquals(0, action.getCount()); - assertEquals(interceptor.getExcludes().iterator().next(), "count"); - assertEquals(interceptor.getExcludes().iterator().next(), "name"); + Iterator<String> it = interceptor.getExcludes().iterator(); + assertEquals(it.next(), "count"); + assertEquals(it.next(), "name"); } public void testNullCompoundRootElementAllowsProcessToContinue() throws Exception {