use of com.google.gerrit.server.query.change.GroupBackedUser in project gerrit by GerritCodeReview.
the class GroupBackedUserPermissionIT method changeVisibility_changeOnBranchVisibleToAnonymousIsVisible.
@Test
public void changeVisibility_changeOnBranchVisibleToAnonymousIsVisible() throws Exception {
Change.Id changeId = changeOperations.newChange().project(project).create();
GroupBackedUser user = new GroupBackedUser(ImmutableSet.of(ANONYMOUS_USERS, REGISTERED_USERS, externalGroup));
permissionBackend.user(user).change(changeNotesFactory.create(project, changeId)).check(ChangePermission.READ);
}
Aggregations