ChangeEditIT: Always specify charset
Otherwise ErrorProne complains about it. Change-Id: I7dc3f841cfcc9d528d0ff4a78329b11898b06bb1 Signed-off-by: Edwin Kempin <ekempin@google.com>
This commit is contained in:
parent
dd3b5f2137
commit
e5baf1a733
@ -307,7 +307,7 @@ public class ChangeEditIT extends AbstractDaemonTest {
|
||||
assertThat(edit).value().baseRevision()
|
||||
.isEqualTo(currentPatchSet.getRevision().get());
|
||||
PushOneCommit push = pushFactory.create(db, admin.getIdent(), testRepo,
|
||||
PushOneCommit.SUBJECT, FILE_NAME, new String(CONTENT_NEW2),
|
||||
PushOneCommit.SUBJECT, FILE_NAME, new String(CONTENT_NEW2, UTF_8),
|
||||
changeId2);
|
||||
push.to("refs/for/master").assertOkStatus();
|
||||
adminRestSession.post(urlRebase(changeId2)).assertConflict();
|
||||
@ -627,7 +627,8 @@ public class ChangeEditIT extends AbstractDaemonTest {
|
||||
public void emptyPutRequest() throws Exception {
|
||||
createEmptyEditFor(changeId);
|
||||
adminRestSession.put(urlEditFile(changeId, FILE_NAME)).assertNoContent();
|
||||
ensureSameBytes(getFileContentOfEdit(changeId, FILE_NAME), "".getBytes());
|
||||
ensureSameBytes(getFileContentOfEdit(changeId, FILE_NAME),
|
||||
"".getBytes(UTF_8));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Loading…
Reference in New Issue
Block a user