summaryrefslogtreecommitdiffstats
path: root/src/junit/com/jogamp/common/net/TestUri01.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-09-07 19:02:48 +0200
committerSven Gothel <[email protected]>2014-09-07 19:02:48 +0200
commit6322991799268166e46aeeacb142c11d45950f48 (patch)
tree1a7c724f30f1f586fbea5aa25661729f545d9367 /src/junit/com/jogamp/common/net/TestUri01.java
parent2d615932505d4870f3fd0dd37f21fb3d308ab536 (diff)
Bug 1063 - Refine Uri and Uri.Encode ; Fix unit tests (passing on GNU/Linux, OSX and Windows)
- Refine Uri - remove System.err.print* - scheme is of type Encode - Refine Uri.Encode - substring(..) shall return type Encode - Fix unit tests (passing on GNU/Linux, OSX and Windows)
Diffstat (limited to 'src/junit/com/jogamp/common/net/TestUri01.java')
-rw-r--r--src/junit/com/jogamp/common/net/TestUri01.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/junit/com/jogamp/common/net/TestUri01.java b/src/junit/com/jogamp/common/net/TestUri01.java
index 361304c..652caa6 100644
--- a/src/junit/com/jogamp/common/net/TestUri01.java
+++ b/src/junit/com/jogamp/common/net/TestUri01.java
@@ -28,7 +28,7 @@ public class TestUri01 extends JunitTracer {
final String vanilla = "XXX ! # $ & ' ( ) * + , / : ; = ? @ [ ]";
final Uri.Encoded escaped = Uri.Encoded.cast("XXX%20!%20%23%20%24%20%26%20%27%20%28%20%29%20%2A%20%2B%20%2C%20/%20%3A%20%3B%20%3D%20%3F%20%40%20%5B%20%5D");
System.err.println("vanilla "+vanilla);
- final Uri.Encoded esc1 = new Uri.Encoded(vanilla, Uri.PATH_MIN_LEGAL);
+ final Uri.Encoded esc1 = new Uri.Encoded(vanilla, Uri.PATH_LEGAL);
System.err.println("esc1 "+esc1);
Assert.assertEquals(escaped, esc1);
@@ -40,7 +40,7 @@ public class TestUri01 extends JunitTracer {
final String vanilla = "/XXX R!# R$&'()*+,/:;=?z@y[x]";
final Uri.Encoded escaped = Uri.Encoded.cast("/XXX%20R!%23%20R%24%26%27%28%29%2A%2B%2C/%3A%3B%3D%3Fz%40y%5Bx%5D");
System.err.println("vanilla "+vanilla);
- final Uri.Encoded esc1 = new Uri.Encoded(vanilla, Uri.PATH_MIN_LEGAL);
+ final Uri.Encoded esc1 = new Uri.Encoded(vanilla, Uri.PATH_LEGAL);
System.err.println("esc1 "+esc1);
Assert.assertEquals(escaped, esc1);
@@ -63,9 +63,9 @@ public class TestUri01 extends JunitTracer {
public void test01URIEscapeCommonChars() throws IOException, URISyntaxException {
{
final String vanilla = "/XXX \"%-.<>\\^_`{|}~";
- final Uri.Encoded escaped = Uri.Encoded.cast("/XXX%20%22%25-.%3C%3E%5C%5E_%60%7B%7C%7D%7E");
+ final Uri.Encoded escaped = Uri.Encoded.cast("/XXX%20%22%25-.%3C%3E%5C%5E_%60%7B%7C%7D~");
System.err.println("vanilla "+vanilla);
- final Uri.Encoded esc1 = new Uri.Encoded(vanilla, Uri.PATH_MIN_LEGAL);
+ final Uri.Encoded esc1 = new Uri.Encoded(vanilla, Uri.PATH_LEGAL);
System.err.println("esc1 "+esc1);
Assert.assertEquals(escaped, esc1);