diff --git a/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/rest/change/ListChangesOptionsIT.java b/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/rest/change/ListChangesOptionsIT.java index 97ae2fd312..02ecbd80ed 100644 --- a/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/rest/change/ListChangesOptionsIT.java +++ b/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/rest/change/ListChangesOptionsIT.java @@ -16,6 +16,7 @@ package com.google.gerrit.acceptance.rest.change; import static com.google.gerrit.extensions.common.ListChangesOption.ALL_REVISIONS; import static com.google.gerrit.extensions.common.ListChangesOption.CURRENT_REVISION; +import static com.google.gerrit.extensions.common.ListChangesOption.MESSAGES; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNull; @@ -72,6 +73,15 @@ public class ListChangesOptionsIT extends AbstractDaemonTest { assertEquals(3, c.revisions.get(commitId(2))._number); } + @Test + public void currentRevisionAndMessages() throws Exception { + ChangeInfo c = get(changeId, CURRENT_REVISION, MESSAGES); + assertEquals(1, c.revisions.size()); + assertEquals(commitId(2), c.currentRevision); + assertEquals(ImmutableSet.of(commitId(2)), c.revisions.keySet()); + assertEquals(3, c.revisions.get(commitId(2))._number); + } + @Test public void allRevisions() throws Exception { ChangeInfo c = get(changeId, ALL_REVISIONS);