verify(shareAce1);
}
public void testACLForPresenceOfInheritedFolderLevelACE() throws IOException {
SmbFileDelegate smbFile = createMock(SmbFileDelegate.class);
ACE fileAce0 = createACE("accountants", AclScope.GROUP,
AclAccess.PERMIT, AceType.ALL_INHERITED);
ACE fileAce1 = createACE("sales", AclScope.GROUP,
AclAccess.PERMIT, AceType.OBJECT_INHERITED);
ACE fileAce2 = createACE("testing1", AclScope.GROUP,
AclAccess.PERMIT, AceType.DIRECT);
ACE fileAce3 = createACE("testing2", AclScope.GROUP,
AclAccess.PERMIT, AceType.INHERIT_ONLY);
ACE fileAce4 = createACE("testing3", AclScope.GROUP,
AclAccess.PERMIT, AceType.CONTAINER_INHERITED);
ACE fileAce5 = createACE("testing4", AclScope.GROUP,
AclAccess.PERMIT, AceType.INHERITED);
ACE[] fileAces =
{fileAce0, fileAce1, fileAce2, fileAce3, fileAce4, fileAce5};
expect(smbFile.getSecurity()).andReturn(fileAces);
expect(smbFile.isDirectory()).andReturn(true);