Merge "Migrate away from deprecated Truth APIs."

This commit is contained in:
Alexander Dorokhine
2020-10-06 07:06:00 +00:00
committed by Android (Google) Code Review
36 changed files with 138 additions and 142 deletions

View File

@@ -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