コード例 #1
0
  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();
  }
コード例 #2
0
  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();
  }