mirror of
https://github.com/apache/struts.git
synced 2026-08-11 01:27:14 +00:00
WW-4063
Testcase modification after refactoring git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/branches/STRUTS_2_3_14_X@1486164 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -380,7 +380,7 @@ public class DefaultUrlHelperTest extends StrutsTestCase {
|
||||
|
||||
public void testTranslateAndEncode() throws Exception {
|
||||
setProp(StrutsConstants.STRUTS_I18N_ENCODING, "UTF-8");
|
||||
String result = urlHelper.translateAndEncode("\u65b0\u805e");
|
||||
String result = urlHelper.encode("\u65b0\u805e");
|
||||
String expectedResult = "%E6%96%B0%E8%81%9E";
|
||||
|
||||
assertEquals(result, expectedResult);
|
||||
@@ -388,7 +388,7 @@ public class DefaultUrlHelperTest extends StrutsTestCase {
|
||||
|
||||
public void testTranslateAndDecode() throws Exception {
|
||||
setProp(StrutsConstants.STRUTS_I18N_ENCODING, "UTF-8");
|
||||
String result = urlHelper.translateAndDecode("%E6%96%B0%E8%81%9E");
|
||||
String result = urlHelper.decode("%E6%96%B0%E8%81%9E");
|
||||
String expectedResult = "\u65b0\u805e";
|
||||
|
||||
assertEquals(result, expectedResult);
|
||||
|
||||
Reference in New Issue
Block a user