jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r986366 - /jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/security/user/UserImporterTest.java
Date Tue, 17 Aug 2010 15:57:51 GMT
Author: mduerig
Date: Tue Aug 17 15:57:50 2010
New Revision: 986366

URL: http://svn.apache.org/viewvc?rev=986366&view=rev
Log:
JCR-2710] Add support for large number of users in a group 
updated tests to correctly cope with members node

Modified:
    jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/security/user/UserImporterTest.java

Modified: jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/security/user/UserImporterTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/security/user/UserImporterTest.java?rev=986366&r1=986365&r2=986366&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/security/user/UserImporterTest.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/security/user/UserImporterTest.java
Tue Aug 17 15:57:50 2010
@@ -666,7 +666,7 @@ public class UserImporterTest extends Ab
             assertNotNull(g1);
 
             NodeImpl n = ((AuthorizableImpl) g1).getNode();
-            assertTrue(n.hasProperty(UserConstants.P_MEMBERS));
+            assertTrue(n.hasProperty(UserConstants.P_MEMBERS) || n.hasNode(UserConstants.N_MEMBERS));
 
             // getWeakReferences only works upon save.
             sImpl.save();
@@ -710,7 +710,7 @@ public class UserImporterTest extends Ab
             assertNotNull(g1);
 
             NodeImpl n = ((AuthorizableImpl) g1).getNode();
-            assertTrue(n.hasProperty(UserConstants.P_MEMBERS));
+            assertTrue(n.hasProperty(UserConstants.P_MEMBERS) || n.hasNode(UserConstants.N_MEMBERS));
 
             // getWeakReferences only works upon save.
             sImpl.save();



Mime
View raw message