Skip to content

Commit af791f2

Browse files
authored
[CQ] migrate off deprecated org.junit assertThat (#8351)
The junit `assertThat` has been deprecated in favor of the one from `org.hamcrest.MatcherAssert`. --- - [x] I’ve reviewed the contributor guide and applied the relevant portions to this PR. <details> <summary>Contribution guidelines:</summary><br> - See our [contributor guide]([https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md](https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#overview) for general expectations for PRs. - Larger or significant changes should be discussed in an issue before creating a PR. - Dart contributions to our repos should follow the [Dart style guide](https://dart.dev/guides/language/effective-dart) and use `dart format`. - Java and Kotlin contributions should strive to follow Java and Kotlin best practices ([discussion](#8098)). </details>
1 parent 744906c commit af791f2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

testSrc/unit/io/flutter/utils/RefreshableTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
package io.flutter.utils;
77

88
import com.google.common.collect.ImmutableList;
9+
import org.hamcrest.MatcherAssert;
910
import org.jetbrains.annotations.NotNull;
1011
import org.junit.Before;
1112
import org.junit.Test;
@@ -362,7 +363,7 @@ private synchronized List<String> getLogEntries() {
362363
}
363364

364365
private void checkLog(String... expectedEntries) {
365-
assertThat("logEntries entries are different", getLogEntries(), is(ImmutableList.copyOf(expectedEntries)));
366+
MatcherAssert.assertThat("logEntries entries are different", getLogEntries(), is(ImmutableList.copyOf(expectedEntries)));
366367
logEntries.clear();
367368
}
368369
}

0 commit comments

Comments
 (0)