use of com.google.gerrit.extensions.api.projects.DeleteBranchesInput in project gerrit by GerritCodeReview.
the class DeleteBranchesIT method deleteBranches.
@Test
public void deleteBranches() throws Exception {
HashMap<String, RevCommit> initialRevisions = initialRevisions(BRANCHES);
DeleteBranchesInput input = new DeleteBranchesInput();
input.branches = BRANCHES;
project().deleteBranches(input);
assertBranchesDeleted();
assertRefUpdatedEvents(initialRevisions);
}
use of com.google.gerrit.extensions.api.projects.DeleteBranchesInput in project gerrit by GerritCodeReview.
the class DeleteBranchesIT method missingInput.
@Test
public void missingInput() throws Exception {
DeleteBranchesInput input = null;
exception.expect(BadRequestException.class);
exception.expectMessage("branches must be specified");
project().deleteBranches(input);
}
Aggregations