You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by re...@apache.org on 2016/08/31 07:36:20 UTC

svn commit: r1758525 - /tomcat/trunk/test/org/apache/catalina/realm/TestMemoryRealm.java

Author: remm
Date: Wed Aug 31 07:36:20 2016
New Revision: 1758525

URL: http://svn.apache.org/viewvc?rev=1758525&view=rev
Log:
Fix test, a plain realm now needs a credentials handler since it's only set in startInternal.

Modified:
    tomcat/trunk/test/org/apache/catalina/realm/TestMemoryRealm.java

Modified: tomcat/trunk/test/org/apache/catalina/realm/TestMemoryRealm.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/catalina/realm/TestMemoryRealm.java?rev=1758525&r1=1758524&r2=1758525&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/catalina/realm/TestMemoryRealm.java (original)
+++ tomcat/trunk/test/org/apache/catalina/realm/TestMemoryRealm.java Wed Aug 31 07:36:20 2016
@@ -29,6 +29,7 @@ public class TestMemoryRealm {
     @Test
     public void testBug56246() {
         MemoryRealm memoryRealm = new MemoryRealm();
+        memoryRealm.setCredentialHandler(new MessageDigestCredentialHandler());
 
         Principal p = memoryRealm.authenticate("foo", "bar");
 



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


Re: svn commit: r1758525 - /tomcat/trunk/test/org/apache/catalina/realm/TestMemoryRealm.java

Posted by Mark Thomas <ma...@apache.org>.
On 31/08/2016 08:36, remm@apache.org wrote:
> Author: remm
> Date: Wed Aug 31 07:36:20 2016
> New Revision: 1758525
> 
> URL: http://svn.apache.org/viewvc?rev=1758525&view=rev
> Log:
> Fix test, a plain realm now needs a credentials handler since it's only set in startInternal.

Thanks. It was late last night and I missed the later versions needed
the fix too.

Mark


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