public WhenComputeVisibility the_visibility_is_computed_for_the_wrong_department_and_the_user_$( @Quoted String mail) { final User user = new User(DUMMY_ID, mail, DUMMY_DEP).setUserGroup(UserGroup.USER); isVisible = ProjectPermissions.isVisible(user).apply(project); return self(); }
public WhenComputeVisibility the_visibility_is_computed_for_department_$_and_user_group_$( @Quoted String department, @TEnumToString UserGroup userGroup) { final User user = new User(DUMMY_ID, DUMMY_MAIL, department).setUserGroup(userGroup); isVisible = ProjectPermissions.isVisible(user).apply(project); return self(); }