DeleteDraftPatchSetIT: Only 1 statement should come after ExpectedException#expect
Change-Id: I33f3a67134175d76ec7933b1b3ca54e22ea25904
This commit is contained in:
parent
82e543d121
commit
8296506e99
|
@ -60,9 +60,9 @@ public class DeleteDraftPatchSetIT extends AbstractDaemonTest {
|
|||
assertThat(c.id).isEqualTo(triplet);
|
||||
assertThat(c.status).isEqualTo(ChangeStatus.NEW);
|
||||
|
||||
setApiUser(admin);
|
||||
exception.expect(ResourceConflictException.class);
|
||||
exception.expectMessage("Patch set is not a draft");
|
||||
setApiUser(admin);
|
||||
deletePatchSet(changeId, ps);
|
||||
}
|
||||
|
||||
|
@ -75,9 +75,9 @@ public class DeleteDraftPatchSetIT extends AbstractDaemonTest {
|
|||
assertThat(c.id).isEqualTo(triplet);
|
||||
assertThat(c.status).isEqualTo(ChangeStatus.DRAFT);
|
||||
|
||||
setApiUser(user);
|
||||
exception.expect(ResourceNotFoundException.class);
|
||||
exception.expectMessage("Not found: " + changeId);
|
||||
setApiUser(user);
|
||||
deletePatchSet(changeId, ps);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue