commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From oglu...@apache.org
Subject svn commit: r280921 - /jakarta/commons/proper/httpclient/trunk/src/test/org/apache/commons/httpclient/auth/TestDigestAuth.java
Date Wed, 14 Sep 2005 19:31:34 GMT
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


Mime
View raw message