aboutsummaryrefslogtreecommitdiff
path: root/common/src/test/at/gv/egovernment/moa/util/URLDecoderTest.java
diff options
context:
space:
mode:
author(no author) <(no author)@d688527b-c9ab-4aba-bd8d-4036d912da1d>2004-06-28 20:46:16 +0000
committer(no author) <(no author)@d688527b-c9ab-4aba-bd8d-4036d912da1d>2004-06-28 20:46:16 +0000
commitda5f70c20ef4bfea21c9d228e1d6891616887958 (patch)
treed05130206e29d13c6fd42003896afb2b31320999 /common/src/test/at/gv/egovernment/moa/util/URLDecoderTest.java
parent4dd1877ef3771633e096509dae7b8c99fee9ce4b (diff)
downloadmoa-id-spss-da5f70c20ef4bfea21c9d228e1d6891616887958.tar.gz
moa-id-spss-da5f70c20ef4bfea21c9d228e1d6891616887958.tar.bz2
moa-id-spss-da5f70c20ef4bfea21c9d228e1d6891616887958.zip
This commit was manufactured by cvs2svn to create tag 'MOA-ID1_2d05'.tags/MOA-ID1_2d05
git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/tags/MOA-ID1_2d05@145 d688527b-c9ab-4aba-bd8d-4036d912da1d
Diffstat (limited to 'common/src/test/at/gv/egovernment/moa/util/URLDecoderTest.java')
-rw-r--r--common/src/test/at/gv/egovernment/moa/util/URLDecoderTest.java29
1 files changed, 0 insertions, 29 deletions
diff --git a/common/src/test/at/gv/egovernment/moa/util/URLDecoderTest.java b/common/src/test/at/gv/egovernment/moa/util/URLDecoderTest.java
deleted file mode 100644
index b6ea0e152..000000000
--- a/common/src/test/at/gv/egovernment/moa/util/URLDecoderTest.java
+++ /dev/null
@@ -1,29 +0,0 @@
-package test.at.gv.egovernment.moa.util;
-
-import java.net.URLEncoder;
-
-import at.gv.egovernment.moa.util.FileUtils;
-import at.gv.egovernment.moa.util.URLDecoder;
-
-import junit.framework.TestCase;
-
-/*
- * @author Paul Ivancsics
- * @version $Id$
- */
-public class URLDecoderTest extends TestCase {
-
- public void test() throws Exception {
- String s = "immerZUA0129<>%==$$%&/()@?{()=} \\\"äöüÄÖÜ?§";
- String senc = URLEncoder.encode(s);
- String sdec = URLDecoder.decode(senc, "ISO-8859-1");
- assertEquals(s, sdec);
- }
- public void testUTF8() throws Exception {
- String s = new String(FileUtils.readFile("data/test/xml/CreateXMLSignature/CreateXMLSignatureResponse.xml"));
- String senc = URLEncoder.encode(s);
- String sdec = URLDecoder.decode(senc, "UTF-8");
- String sutf8 = FileUtils.readFile("data/test/xml/CreateXMLSignature/CreateXMLSignatureResponse.xml", "UTF-8");
- assertEquals(sutf8, sdec);
- }
-}