You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2015/04/27 23:51:55 UTC

svn commit: r1676385 - /tomcat/tc7.0.x/trunk/test/org/apache/catalina/filters/TestRemoteIpFilter.java

Author: markt
Date: Mon Apr 27 21:51:54 2015
New Revision: 1676385

URL: http://svn.apache.org/r1676385
Log:
Follow-up to r1676372
Slightly different set-up needed to unit test in 7.0.x

Modified:
    tomcat/tc7.0.x/trunk/test/org/apache/catalina/filters/TestRemoteIpFilter.java

Modified: tomcat/tc7.0.x/trunk/test/org/apache/catalina/filters/TestRemoteIpFilter.java
URL: http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/test/org/apache/catalina/filters/TestRemoteIpFilter.java?rev=1676385&r1=1676384&r2=1676385&view=diff
==============================================================================
--- tomcat/tc7.0.x/trunk/test/org/apache/catalina/filters/TestRemoteIpFilter.java (original)
+++ tomcat/tc7.0.x/trunk/test/org/apache/catalina/filters/TestRemoteIpFilter.java Mon Apr 27 21:51:54 2015
@@ -151,7 +151,7 @@ public class TestRemoteIpFilter extends
         public Context getContext() {
             // Lazt init
             if (super.getContext() == null) {
-                getMappingData().context = new TesterContext();
+                super.setContext(new TesterContext());
             }
             return super.getContext();
         }



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org