RevisionIT: Only 1 statement should come after ExpectedException#expect
Change-Id: I5af2c5e9dfa4392baa824faf9c30f2c6b5e33c23 Signed-off-by: Edwin Kempin <ekempin@google.com>
This commit is contained in:
@@ -996,9 +996,9 @@ public class RevisionIT extends AbstractDaemonTest {
|
||||
recommend(r.getChangeId());
|
||||
|
||||
// check if it's blocked to delete a vote on a non-current patch set.
|
||||
setApiUser(admin);
|
||||
exception.expect(MethodNotAllowedException.class);
|
||||
exception.expectMessage("Cannot access on non-current patch set");
|
||||
setApiUser(admin);
|
||||
gApi.changes()
|
||||
.id(r.getChangeId())
|
||||
.revision(r.getCommit().getName())
|
||||
|
Reference in New Issue
Block a user