From 7140e0192b537f1ff388fbf00758b591a9cdeb6f Mon Sep 17 00:00:00 2001 From: Yasser Zamani Date: Fri, 3 Feb 2017 02:37:17 +0330 Subject: [PATCH] [WW-4528] correcting testTwoExcludesPropertiesChained unit test --- .../xwork2/interceptor/ChainingInterceptorTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 8c18ee5c6..6fdcf788e 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 it = interceptor.getExcludes().iterator(); + assertEquals(it.next(), "count"); + assertEquals(it.next(), "name"); } public void testNullCompoundRootElementAllowsProcessToContinue() throws Exception {