checkMerchantPermissions(p);
}
private void checkMerchantPermissions(GroupPermissions p) {
assertEquals(p.getOperations().toString(), 5, p.getOperations().size());
SecurityGroup everybody = checkPermissions(p, "*");
assertTrue(everybody.isGlobalSecurityGroup());
checkPermissions(p, "merchantUser", "crudOperation.update");
// integrator is initially defined as a global group, but then redefined in the merchant block
SecurityGroup integratorUser = checkPermissions(p, "integratorUser",
"crudOperation.create", "crudOperation.read",
"crudOperation.update", "crudOperation.delete");
assertFalse(integratorUser.isGlobalSecurityGroup());
assertEquals("integratorUser", integratorUser.getPaths().get(0).getPath().get(0).getName());
checkPermissions(p, "clerk", "crudOperation.read");
SecurityGroup internalUser = checkPermissions(p, "internalUser", "*.*");
assertTrue(internalUser.isGlobalSecurityGroup());
}