Encode UTF-8 characters used in Java test sources

A pass-through the native2ascii tool.

Issue: SPR-9657
This commit is contained in:
Rossen Stoyanchev
2012-08-22 11:38:55 -04:00
parent b3f0b6e2d6
commit de6f74fa40
3 changed files with 4 additions and 3 deletions

View File

@@ -276,7 +276,8 @@ public class AbstractFlashMapManagerTests {
flashMap.addTargetRequestParam("key", "%D0%92%D0%92");
this.flashMapManager.saveOutputFlashMap(flashMap, this.request, this.response);
assertEquals(Arrays.asList("АА", "ББ", "ВВ"), flashMap.getTargetRequestParams().get("key"));
assertEquals(Arrays.asList("\u0410\u0410", "\u0411\u0411", "\u0412\u0412"),
flashMap.getTargetRequestParams().get("key"));
}

View File

@@ -651,7 +651,7 @@ public class SelectTagTests extends AbstractFormTagTests {
// Save original default locale.
final Locale defaultLocale = Locale.getDefault();
// Use a locale that doesn't result in the generation of HTML entities
// (e.g., not German, where ä becomes ä)
// (e.g., not German, where \u00e4 becomes ä)
Locale.setDefault(Locale.US);
try {

View File

@@ -239,7 +239,7 @@ public class BaseViewTests extends TestCase {
public void testAttributeCSVParsingValidWithWeirdCharacters() {
AbstractView v = new ConcreteView();
String fooval = "owfie fue&3[][[[2 \n\n \r \t 8<EFBFBD>3";
String fooval = "owfie fue&3[][[[2 \n\n \r \t 8\ufffd3";
// Also tests empty value
String kingval = "";
v.setAttributesCSV("foo=(" + fooval + "),king={" + kingval + "},f1=[we]");