Verify change and commit messages in cherry-pick test

Change-Id: I87d4954c523c02024d0895b946ef9489ccb3e84f
This commit is contained in:
Dave Borowitz
2014-06-27 10:55:07 -07:00
committed by Edwin Kempin
parent e43ab40ec2
commit e6c82b7ba7

View File

@@ -136,13 +136,18 @@ public class RevisionIT extends AbstractDaemonTest {
.name(project.get())
.branch(in.destination)
.create(new BranchInput());
ChangeApi cApi = gApi.changes()
.id(r.getChangeId())
.revision(r.getCommit().name())
ChangeApi orig = gApi.changes()
.id("p~master~" + r.getChangeId());
assertEquals(1, orig.get().messages.size());
ChangeApi cherry = orig.revision(r.getCommit().name())
.cherryPick(in);
cApi.current()
assertEquals(2, orig.get().messages.size());
assertTrue(cherry.get().subject.contains(in.message));
cherry.current()
.review(ReviewInput.approve());
cApi.current()
cherry.current()
.submit();
}