diff options
author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-04-10 19:59:37 +0000 |
---|---|---|
committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-04-10 19:59:37 +0000 |
commit | 3df4acfa816441fc28a95dee6d0191a927145d95 (patch) | |
tree | b5ae7ca44662cfd8e5c95f1826e4406021a606f5 /java/JACE/tests/Connection/HTTPHelperTest.java | |
parent | 60a5612b83d856fc0adc52b9f39fac9960ec9818 (diff) | |
download | ATCD-pre-subset.tar.gz |
This commit was manufactured by cvs2svn to create tag 'pre-subset'.pre-subset
Diffstat (limited to 'java/JACE/tests/Connection/HTTPHelperTest.java')
-rw-r--r-- | java/JACE/tests/Connection/HTTPHelperTest.java | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/java/JACE/tests/Connection/HTTPHelperTest.java b/java/JACE/tests/Connection/HTTPHelperTest.java deleted file mode 100644 index 28967acb8d3..00000000000 --- a/java/JACE/tests/Connection/HTTPHelperTest.java +++ /dev/null @@ -1,34 +0,0 @@ -package JACE.tests.Connection; - -import java.io.*; -import JACE.Connection.*; -import JACE.OS.*; - -public class HTTPHelperTest -{ - public static void main(String args[]) - { - ACE.enableDebugging (); - // This is just a quick test to confirm that the Base 64 - // encoding and decoding work - // (tests the example given in the HTTP 1.1 RFC) - - String secret = "Aladdin:open sesame"; - - String encoded = HTTPHelper.EncodeBase64(secret); - - System.err.println("Encoding string: \"" + secret + '\"'); - - System.err.println("Result: \"" + encoded + '\"'); - - System.err.println("Is this right? " + - (encoded.equals("QWxhZGRpbjpvcGVuIHNlc2FtZQ==") ? - "Yes" : "No")); - - String decoded = HTTPHelper.DecodeBase64 (encoded); - System.err.println("Decoded: \"" + decoded + '\"'); - - System.err.println("Is this right? " + - (decoded.equals (secret) ? "Yes" : "No")); - } -} |