use of com.google.gerrit.extensions.api.changes.FileContentInput in project gerrit by GerritCodeReview.
the class ChangeEditIT method changeEditRest.
@Test
public void changeEditRest() throws Exception {
createEmptyEditFor(changeId);
FileContentInput in = new FileContentInput();
in.content = RawInputUtil.create(CONTENT_NEW);
adminRestSession.putRaw(urlEditFile(changeId, FILE_NAME), in.content).assertNoContent();
ensureSameBytes(getFileContentOfEdit(changeId, FILE_NAME), CONTENT_NEW);
}
Aggregations