Migrate away from deprecated Truth APIs.
This is a transitional step towards truth 1.0.1, where these APIs have been completely removed. Bug: 168765701 Test: m checkbuild Change-Id: I76f9c37cb699ce6ab8715ffe35d11668ccbceea1
This commit is contained in:
@@ -27,6 +27,7 @@ import static androidx.test.espresso.matcher.ViewMatchers.withId;
|
||||
import static androidx.test.espresso.matcher.ViewMatchers.withText;
|
||||
|
||||
import static com.google.common.truth.Truth.assertThat;
|
||||
import static com.google.common.truth.Truth.assertWithMessage;
|
||||
|
||||
import static org.hamcrest.CoreMatchers.not;
|
||||
|
||||
@@ -80,7 +81,7 @@ public class SetupChooseLockPasswordAppTest {
|
||||
assertThat(skipOrClearButton.getText()).isEqualTo(mContext.getString(R.string.skip_label));
|
||||
assertThat(skipOrClearButton.getVisibility()).isEqualTo(View.VISIBLE);
|
||||
skipOrClearButton.performClick();
|
||||
assertThat(activity.isFinishing()).named("Is finishing").isTrue();
|
||||
assertWithMessage("Is finishing").that(activity.isFinishing()).isTrue();
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Reference in New Issue
Block a user