directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r1534991 - /directory/escimo/trunk/tests/src/test/java/org/apache/directory/scim/UserResourceTest.java
Date Wed, 23 Oct 2013 11:36:34 GMT
Author: kayyagari
Date: Wed Oct 23 11:36:33 2013
New Revision: 1534991

URL: http://svn.apache.org/r1534991
Log:
test for deleting all members of a group

Modified:
    directory/escimo/trunk/tests/src/test/java/org/apache/directory/scim/UserResourceTest.java

Modified: directory/escimo/trunk/tests/src/test/java/org/apache/directory/scim/UserResourceTest.java
URL: http://svn.apache.org/viewvc/directory/escimo/trunk/tests/src/test/java/org/apache/directory/scim/UserResourceTest.java?rev=1534991&r1=1534990&r2=1534991&view=diff
==============================================================================
--- directory/escimo/trunk/tests/src/test/java/org/apache/directory/scim/UserResourceTest.java
(original)
+++ directory/escimo/trunk/tests/src/test/java/org/apache/directory/scim/UserResourceTest.java
Wed Oct 23 11:36:33 2013
@@ -37,6 +37,7 @@ import org.apache.directory.api.ldap.mod
 import org.apache.directory.scim.User.Email;
 import org.apache.directory.scim.User.Name;
 import org.apache.directory.scim.schema.CoreResource;
+import org.apache.directory.scim.schema.MetaData;
 import org.apache.directory.server.core.api.CoreSession;
 import org.apache.directory.server.core.api.LdapCoreSessionConnection;
 import org.junit.AfterClass;
@@ -255,5 +256,15 @@ public class UserResourceTest
                 fail( "This member shouldn't present" );
             }
         }
+        
+        Group deleteMemGroup = new Group();
+        MetaData meta = new MetaData();
+        List<String> attributes = new ArrayList<String>();
+        attributes.add( "members" );
+        meta.setAttributes( attributes );
+        deleteMemGroup.setMeta( meta );
+        
+        patchedGroup = ( Group ) client.patchGroup( addedGroup.getId(), deleteMemGroup );
+        assertNull( patchedGroup.getMembers() );
     }
 }



Mime
View raw message