diff options
author | (no author) <(no author)@d688527b-c9ab-4aba-bd8d-4036d912da1d> | 2005-06-24 11:00:16 +0000 |
---|---|---|
committer | (no author) <(no author)@d688527b-c9ab-4aba-bd8d-4036d912da1d> | 2005-06-24 11:00:16 +0000 |
commit | c87e8ec82b5a85596bdab1adba86972cd88b96c5 (patch) | |
tree | e14cf111b5adc386a8f53c457623864825945111 /common/src/test/at/gv/egovernment/moa/util/URLDecoderTest.java | |
parent | 4914ffa0d889ed525229c0715686b26e30cc1343 (diff) | |
download | moa-id-spss-tags/Build-SPSS-1_2_1.tar.gz moa-id-spss-tags/Build-SPSS-1_2_1.tar.bz2 moa-id-spss-tags/Build-SPSS-1_2_1.zip |
This commit was manufactured by cvs2svn to create tagtags/Build-SPSS-1_2_1
'Build-SPSS-1_2_1'.
git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/tags/Build-SPSS-1_2_1@371 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.java | 29 |
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); - } -} |