AbstractSubmit: Add extra isNotNull assertion
Change-Id: I04fd237736f1f060b362e9c0c21970af2dd3f98e
This commit is contained in:
parent
a3e3cafffd
commit
fe2a4a34b7
@ -289,6 +289,7 @@ public abstract class AbstractSubmit extends AbstractDaemonTest {
|
|||||||
getOnlyElement(queryProvider.get().byKeyPrefix(changeId)).change());
|
getOnlyElement(queryProvider.get().byKeyPrefix(changeId)).change());
|
||||||
PatchSetApproval submitter = approvalsUtil.getSubmitter(
|
PatchSetApproval submitter = approvalsUtil.getSubmitter(
|
||||||
db, cn, new PatchSet.Id(cn.getChangeId(), psId));
|
db, cn, new PatchSet.Id(cn.getChangeId(), psId));
|
||||||
|
assertThat(submitter).isNotNull();
|
||||||
assertThat(submitter.isSubmit()).isTrue();
|
assertThat(submitter.isSubmit()).isTrue();
|
||||||
assertThat(submitter.getAccountId()).isEqualTo(admin.getId());
|
assertThat(submitter.getAccountId()).isEqualTo(admin.getId());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user