Author: sback
Date: 2007-07-21 15:34:25 +0000 (Sat, 21 Jul 2007)
New Revision: 14239

Modified:
   trunk/freenet/test/freenet/support/URIPreEncoderTest.java
Log:
Directly stressed chars replaced with the \uXXXX encoded ones provided by 
test.freenet.support.UTFUtils methods

Modified: trunk/freenet/test/freenet/support/URIPreEncoderTest.java
===================================================================
--- trunk/freenet/test/freenet/support/URIPreEncoderTest.java   2007-07-21 
15:28:46 UTC (rev 14238)
+++ trunk/freenet/test/freenet/support/URIPreEncoderTest.java   2007-07-21 
15:34:25 UTC (rev 14239)
@@ -17,7 +17,7 @@

 import java.net.URI;
 import java.net.URISyntaxException;
-
+import freenet.utils.UTFUtil;
 import junit.framework.TestCase;

 /**
@@ -27,12 +27,9 @@
  */
 public class URIPreEncoderTest extends TestCase {

-       private String prtblAscii = " !@#$%^&()+={}[]:;\"'<>,?~`";              
        //printable ascii symbols
+       private String prtblAscii = new String(UTFUtil.PRINTABLE_ASCII);
+       private String stressedUTF_8Chars = new String(UTFUtil.STRESSED_UTF);

-       private String stressedUTF_8Chars = 
"???????????????????????????????????????????????????????????????"+ 
-               
"???????????????????????????????????????????????????????????????"+
-               "?????????????????????????????????????????????????";    //UTF-8 
chars with stress 
-       
        private boolean containsOnlyValidChars(String aString) {
                char eachChar;
                for (int i = 0; i < aString.length(); i++) {


Reply via email to