aboutsummaryrefslogtreecommitdiff
path: root/common/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'common/src/test')
-rw-r--r--common/src/test/java/test/at/gv/egovernment/moa/util/URLDecoderTest.java2
-rw-r--r--common/src/test/java/test/at/gv/egovernment/moa/util/URLEncoderTest.java4
2 files changed, 3 insertions, 3 deletions
diff --git a/common/src/test/java/test/at/gv/egovernment/moa/util/URLDecoderTest.java b/common/src/test/java/test/at/gv/egovernment/moa/util/URLDecoderTest.java
index 59163f112..2ded896d0 100644
--- a/common/src/test/java/test/at/gv/egovernment/moa/util/URLDecoderTest.java
+++ b/common/src/test/java/test/at/gv/egovernment/moa/util/URLDecoderTest.java
@@ -38,7 +38,7 @@ import junit.framework.TestCase;
public class URLDecoderTest extends TestCase {
public void test() throws Exception {
- String s = "immerZUA0129<>%==$$%&/()@?{()=} \\\"äöüÄÖÜ?§";
+ String s = "immerZUA0129<>%==$$%&/()@?{()=} \\\"";
String senc = URLEncoder.encode(s);
String sdec = URLDecoder.decode(senc, "ISO-8859-1");
assertEquals(s, sdec);
diff --git a/common/src/test/java/test/at/gv/egovernment/moa/util/URLEncoderTest.java b/common/src/test/java/test/at/gv/egovernment/moa/util/URLEncoderTest.java
index 88c74f3ae..5f72c8aad 100644
--- a/common/src/test/java/test/at/gv/egovernment/moa/util/URLEncoderTest.java
+++ b/common/src/test/java/test/at/gv/egovernment/moa/util/URLEncoderTest.java
@@ -41,12 +41,12 @@ public class URLEncoderTest extends TestCase {
assertEquals(s, senc);
}
public void testAumlUTF8() throws Exception {
- String s = "ä";
+ String s = "ä";
String senc = URLEncoder.encode(s, "UTF-8");
assertEquals("%C3%A4", senc);
}
public void testEncodeDecode() throws Exception {
- String s = "AZaz09.-*_ <>%=$%&/()@?{}[]\\\"'äöüÄÖÜߧ";
+ String s = "AZaz09.-*_ <>%=$%&/()@?{}[]\\\"";
String senc = URLEncoder.encode(s, "UTF-8");
String sdec = URLDecoder.decode(senc, "UTF-8");
assertEquals(s, sdec);