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

2016-08-31 Thread Mark Thomas
On 31/08/2016 08:36, r...@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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



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

2016-08-31 Thread remm
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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org