use of com.google.gerrit.extensions.api.projects.CheckProjectInput.AutoCloseableChangesCheckInput in project gerrit by GerritCodeReview.
the class CheckProjectIT method noBranch.
@Test
public void noBranch() throws Exception {
CheckProjectInput input = new CheckProjectInput();
input.autoCloseableChangesCheck = new AutoCloseableChangesCheckInput();
BadRequestException thrown = assertThrows(BadRequestException.class, () -> gApi.projects().name(project.get()).check(input));
assertThat(thrown).hasMessageThat().contains("branch is required");
}
use of com.google.gerrit.extensions.api.projects.CheckProjectInput.AutoCloseableChangesCheckInput in project gerrit by GerritCodeReview.
the class CheckProjectIT method checkProjectInputForAutoCloseableCheck.
private static CheckProjectInput checkProjectInputForAutoCloseableCheck(String branch) {
CheckProjectInput input = new CheckProjectInput();
input.autoCloseableChangesCheck = new AutoCloseableChangesCheckInput();
input.autoCloseableChangesCheck.branch = branch;
return input;
}
Aggregations