use of com.google.gerrit.extensions.api.access.ProjectAccessInput in project gerrit by GerritCodeReview.
the class AccessIT method updateParentAsAdministrator.
@Test
public void updateParentAsAdministrator() throws Exception {
// Create parent
String newParentProjectName = createProject(PROJECT_NAME + "PA").get();
// Set new parent
ProjectAccessInput accessInput = newProjectAccessInput();
accessInput.parent = newParentProjectName;
gApi.projects().name(newProjectName).access(accessInput);
assertThat(pApi.access().inheritsFrom.name).isEqualTo(newParentProjectName);
}
Aggregations