struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lukaszlen...@apache.org
Subject [17/50] git commit: Removes override which isn't used anymore
Date Fri, 27 Jun 2014 11:23:45 GMT
Removes override which isn't used anymore


Project: http://git-wip-us.apache.org/repos/asf/struts/repo
Commit: http://git-wip-us.apache.org/repos/asf/struts/commit/7857b869
Tree: http://git-wip-us.apache.org/repos/asf/struts/tree/7857b869
Diff: http://git-wip-us.apache.org/repos/asf/struts/diff/7857b869

Branch: refs/heads/feature/WW-4295-localization
Commit: 7857b869a05b12779e35bfe8751828dfbf328fff
Parents: 62ee6b1
Author: Lukasz Lenart <lukaszlenart@apache.org>
Authored: Mon May 5 21:33:44 2014 +0200
Committer: Lukasz Lenart <lukaszlenart@apache.org>
Committed: Mon May 5 21:33:44 2014 +0200

----------------------------------------------------------------------
 .../xwork2/interceptor/ParametersInterceptorTest.java | 14 --------------
 1 file changed, 14 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/struts/blob/7857b869/xwork-core/src/test/java/com/opensymphony/xwork2/interceptor/ParametersInterceptorTest.java
----------------------------------------------------------------------
diff --git a/xwork-core/src/test/java/com/opensymphony/xwork2/interceptor/ParametersInterceptorTest.java
b/xwork-core/src/test/java/com/opensymphony/xwork2/interceptor/ParametersInterceptorTest.java
index 6ffb3ff..359618f 100644
--- a/xwork-core/src/test/java/com/opensymphony/xwork2/interceptor/ParametersInterceptorTest.java
+++ b/xwork-core/src/test/java/com/opensymphony/xwork2/interceptor/ParametersInterceptorTest.java
@@ -187,10 +187,6 @@ public class ParametersInterceptorTest extends XWorkTestCase {
                 return result;
             }
 
-            @Override
-            protected void initializeHardCodedExcludePatterns() {
-                excludeParams = new HashSet<Pattern>();
-            }
         };
 
         container.inject(pi);
@@ -307,11 +303,6 @@ public class ParametersInterceptorTest extends XWorkTestCase {
         ParametersInterceptor pi = new ParametersInterceptor() {
 
             @Override
-            protected void initializeHardCodedExcludePatterns() {
-                this.excludeParams = new HashSet<Pattern>();
-            }
-
-            @Override
             protected boolean isExcluded(String paramName) {
                 boolean result = super.isExcluded(paramName);
                 excluded.put(paramName, result);
@@ -744,11 +735,6 @@ public class ParametersInterceptorTest extends XWorkTestCase {
         assertEquals(expected, actual);
     }
 
-    public void testExcludedPatternsGetInitialized() throws Exception {
-        ParametersInterceptor parametersInterceptor = new ParametersInterceptor();
-        assertEquals(ExcludedPatterns.EXCLUDED_PATTERNS.length, parametersInterceptor.excludeParams.size());
-    }
-
     private ValueStack injectValueStack(Map<String, Object> actual) {
         ValueStack stack = createStubValueStack(actual);
         container.inject(stack);


Mime
View raw message