Revision: 474
Author: chkalt
Date: Sat Dec 11 07:09:20 2010
Log: Added Arquillian test for German umlauts in query parameter values
http://code.google.com/p/prettyfaces/source/detail?r=474
Modified:
/prettyfaces/trunk/tests-jsf2/src/test/java/com/ocpsoft/pretty/faces/test/encoding/URLEncodingTest.java
=======================================
---
/prettyfaces/trunk/tests-jsf2/src/test/java/com/ocpsoft/pretty/faces/test/encoding/URLEncodingTest.java
Sun Nov 7 15:01:05 2010
+++
/prettyfaces/trunk/tests-jsf2/src/test/java/com/ocpsoft/pretty/faces/test/encoding/URLEncodingTest.java
Sat Dec 11 07:09:20 2010
@@ -136,6 +136,20 @@
assertEquals("Fooo Bar", val2);
}
+ @Test
+ public void testQueryWithGermanUmlaut() throws Exception
+ {
+
+ // query parameter contains a German 'ü' encoded with UTF8
+ JSFSession jsfSession = new
JSFSession("/encoding/Vračar?dis=%C3%BC");
+ JSFServerSession server = jsfSession.getJSFServerSession();
+
+ assertEquals("/encoding.xhtml", server.getCurrentViewID());
+
+ Object val2 =
server.getManagedBeanValue("#{encodingBean.queryText}");
+ assertEquals("\u00fc", val2);
+ }
+
@Test
public void testPatternDecoding() throws Exception
{