Fix usage of assertThat in assertReviewers
Instead of: assertThat(iterable.isEmpty()).isTrue() use: assertThat(iterable).isEmpty() Also add a cast to prevent deprecation warning that was introduced in version 0.25 of the Truth library. Change-Id: I551229051af3c87fe7031f4f0f6433ef8e673fe6
This commit is contained in:
parent
8c285cde0b
commit
5e996fd3d4
@ -258,9 +258,9 @@ public class PushOneCommit {
|
||||
.named("unexpected reviewer " + accountId)
|
||||
.isTrue();
|
||||
}
|
||||
assertThat(expectedReviewerIds.isEmpty())
|
||||
assertThat((Iterable<?>)expectedReviewerIds)
|
||||
.named("missing reviewers: " + expectedReviewerIds)
|
||||
.isTrue();
|
||||
.isEmpty();
|
||||
}
|
||||
|
||||
public void assertOkStatus() {
|
||||
|
Loading…
Reference in New Issue
Block a user