You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by de...@apache.org on 2018/05/03 18:26:32 UTC

[myfaces-test] 04/24: MYFACESTEST-9 MockExternalContext20 should implement encodePartialActionURL()

This is an automated email from the ASF dual-hosted git repository.

deki pushed a commit to branch 1_0_0_beta_4
in repository https://gitbox.apache.org/repos/asf/myfaces-test.git

commit c2f7f09785fd8bdaba1b3984335db0de44f082a3
Author: Jakob Korherr <ja...@apache.org>
AuthorDate: Mon May 3 17:01:27 2010 +0000

    MYFACESTEST-9 MockExternalContext20 should implement encodePartialActionURL()
---
 .../java/org/apache/myfaces/test/mock/MockExternalContext20.java    | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/test20/src/main/java/org/apache/myfaces/test/mock/MockExternalContext20.java b/test20/src/main/java/org/apache/myfaces/test/mock/MockExternalContext20.java
index 71e3ddc..98615c3 100644
--- a/test20/src/main/java/org/apache/myfaces/test/mock/MockExternalContext20.java
+++ b/test20/src/main/java/org/apache/myfaces/test/mock/MockExternalContext20.java
@@ -157,6 +157,12 @@ public class MockExternalContext20 extends MockExternalContext12
     {
         return response.encodeRedirectURL(encodeURL(baseUrl, parameters));
     }
+    
+    @Override
+    public String encodePartialActionURL(String url)
+    {
+        return ((HttpServletResponse) response).encodeURL(url);
+    }
 
     public String getContextName() {
         return context.getServletContextName();

-- 
To stop receiving notification emails like this one, please contact
deki@apache.org.