Browse Source

Add another annoyingly bitchy quoting test for the ident client

git-svn-id: http://svn.dmdirc.com/trunk@3846 00569f92-eb28-0410-84fd-f71c24880f
tags/0.6
Chris Smith 16 years ago
parent
commit
4d7a550715
1 changed files with 9 additions and 0 deletions
  1. 9
    0
      test/com/dmdirc/addons/identd/IdentClientTest.java

+ 9
- 0
test/com/dmdirc/addons/identd/IdentClientTest.java View File

@@ -53,6 +53,15 @@ public class IdentClientTest extends junit.framework.TestCase {
53 53
         
54 54
         assertStartsWith("Special chars in illegal requests must be quoted",
55 55
                 response, "in\\\\valid\\:invalid");
56
+    }
57
+    
58
+    @Test
59
+    public void testQuoting2() {
60
+        final String response = IdentClient.getIdentResponse("in\\\\valid\\ inv\\:alid",
61
+                IdentityManager.getGlobalConfig());
62
+        
63
+        assertStartsWith("Escaped characters in illegal requests shouldn't be doubly-escaped",
64
+                response, "in\\\\valid\\ inv\\:alid");
56 65
     }    
57 66
     
58 67
     @Test

Loading…
Cancel
Save