jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r896942 - /jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/security/principal/DefaultPrincipalProviderTest.java
Date Thu, 07 Jan 2010 17:57:21 GMT
Author: angela
Date: Thu Jan  7 17:57:21 2010
New Revision: 896942

URL: http://svn.apache.org/viewvc?rev=896942&view=rev
Log:
JCR-2452 - DefaultPrincipalProvider#collectGroupMembership puts wrong principal instance to
the cache

oops. should be getprincipal instead of provideprincipal

Modified:
    jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/security/principal/DefaultPrincipalProviderTest.java

Modified: jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/security/principal/DefaultPrincipalProviderTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/security/principal/DefaultPrincipalProviderTest.java?rev=896942&r1=896941&r2=896942&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/security/principal/DefaultPrincipalProviderTest.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/security/principal/DefaultPrincipalProviderTest.java
Thu Jan  7 17:57:21 2010
@@ -114,7 +114,7 @@
         for (Principal p : principals) {
             Principal testPrinc = new TestPrincipal(p.getName());
             principalProvider.getGroupMembership(testPrinc);
-            Principal fromProvider = ((DefaultPrincipalProvider) principalProvider).providePrincipal(p.getName());
+            Principal fromProvider = principalProvider.getPrincipal(p.getName());
 
             assertNotSame(testPrinc, fromProvider);
             assertFalse(fromProvider instanceof TestPrincipal);



Mime
View raw message