You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by lu...@apache.org on 2017/02/14 07:07:00 UTC
[3/5] struts git commit: [WW-4528] improving
testTwoExcludesPropertiesChained unit test
[WW-4528] improving 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/51c0bcbb
Tree: http://git-wip-us.apache.org/repos/asf/struts/tree/51c0bcbb
Diff: http://git-wip-us.apache.org/repos/asf/struts/diff/51c0bcbb
Branch: refs/heads/master
Commit: 51c0bcbb8bf4103a5c97be0f6372725f792f470e
Parents: 7140e01
Author: Yasser Zamani <y....@gmail.com>
Authored: Fri Feb 3 11:25:02 2017 +0330
Committer: Yasser Zamani <y....@gmail.com>
Committed: Fri Feb 3 11:25:02 2017 +0330
----------------------------------------------------------------------
.../xwork2/interceptor/ChainingInterceptorTest.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/struts/blob/51c0bcbb/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 6fdcf78..1251612 100644
--- a/core/src/test/java/com/opensymphony/xwork2/interceptor/ChainingInterceptorTest.java
+++ b/core/src/test/java/com/opensymphony/xwork2/interceptor/ChainingInterceptorTest.java
@@ -130,9 +130,9 @@ public class ChainingInterceptorTest extends XWorkTestCase {
assertEquals(bean.getBirth(), action.getBirth());
assertEquals(null, action.getName());
assertEquals(0, action.getCount());
- Iterator<String> it = interceptor.getExcludes().iterator();
- assertEquals(it.next(), "count");
- assertEquals(it.next(), "name");
+ assertTrue(interceptor.getExcludes().contains("count"));
+ assertTrue(interceptor.getExcludes().contains("name"));
+ assertTrue(interceptor.getExcludes().size() == 2);
}
public void testNullCompoundRootElementAllowsProcessToContinue() throws Exception {