You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by og...@apache.org on 2005/09/14 21:31:34 UTC

svn commit: r280921 - /jakarta/commons/proper/httpclient/trunk/src/test/org/apache/commons/httpclient/auth/TestDigestAuth.java

Author: oglueck
Date: Wed Sep 14 12:31:28 2005
New Revision: 280921

URL: http://svn.apache.org/viewcvs?rev=280921&view=rev
Log:
added another test for formerly fixed issue

Modified:
    jakarta/commons/proper/httpclient/trunk/src/test/org/apache/commons/httpclient/auth/TestDigestAuth.java

Modified: jakarta/commons/proper/httpclient/trunk/src/test/org/apache/commons/httpclient/auth/TestDigestAuth.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/httpclient/trunk/src/test/org/apache/commons/httpclient/auth/TestDigestAuth.java?rev=280921&r1=280920&r2=280921&view=diff
==============================================================================
--- jakarta/commons/proper/httpclient/trunk/src/test/org/apache/commons/httpclient/auth/TestDigestAuth.java (original)
+++ jakarta/commons/proper/httpclient/trunk/src/test/org/apache/commons/httpclient/auth/TestDigestAuth.java Wed Sep 14 12:31:28 2005
@@ -179,7 +179,8 @@
         AuthScheme authscheme = new DigestScheme();
         authscheme.processChallenge(challenge);
         String response = authscheme.authenticate(cred, method);
-        assertTrue(response.indexOf("nc=00000001") > 0);
+        assertTrue(response.indexOf("nc=00000001") > 0); // test for quotes
+        assertTrue(response.indexOf("qop=auth") > 0); // test for quotes
         Map table = AuthChallengeParser.extractParams(response);
         assertEquals(username, table.get("username"));
         assertEquals(realm, table.get("realm"));



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org