diff options
author | vadimt <vadimt@google.com> | 2019-03-27 16:10:30 -0700 |
---|---|---|
committer | vadimt <vadimt@google.com> | 2019-03-27 16:10:30 -0700 |
commit | cea84574ecbd43f41952b09d31840cc0b46503cc (patch) | |
tree | d1b6c370d07865c5f3357e06590b837636c29dd3 /tests/tapl | |
parent | 60353faa2e796f461c9271b75b3849e070c4532f (diff) | |
download | android_packages_apps_Trebuchet-cea84574ecbd43f41952b09d31840cc0b46503cc.tar.gz android_packages_apps_Trebuchet-cea84574ecbd43f41952b09d31840cc0b46503cc.tar.bz2 android_packages_apps_Trebuchet-cea84574ecbd43f41952b09d31840cc0b46503cc.zip |
TAPL: using assert that prints context
Change-Id: I9545e82f67e51bd07f20f0313d98f5dd65c84d4e
Diffstat (limited to 'tests/tapl')
-rw-r--r-- | tests/tapl/com/android/launcher3/tapl/Background.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/tapl/com/android/launcher3/tapl/Background.java b/tests/tapl/com/android/launcher3/tapl/Background.java index 26c0ca4ec..358d5e907 100644 --- a/tests/tapl/com/android/launcher3/tapl/Background.java +++ b/tests/tapl/com/android/launcher3/tapl/Background.java @@ -20,8 +20,6 @@ import static com.android.launcher3.TestProtocol.BACKGROUND_APP_STATE_ORDINAL; import static com.android.launcher3.tapl.LauncherInstrumentation.WAIT_TIME_MS; import static com.android.launcher3.tapl.TestHelpers.getOverviewPackageName; -import static org.junit.Assert.assertTrue; - import android.graphics.Point; import android.os.SystemClock; import android.view.MotionEvent; @@ -61,7 +59,7 @@ public class Background extends LauncherInstrumentation.VisibleContainer { "want to switch from background to overview")) { verifyActiveContainer(); goToOverviewUnchecked(BACKGROUND_APP_STATE_ORDINAL); - assertTrue("Overview not visible", mLauncher.getDevice().wait( + mLauncher.assertTrue("Overview not visible", mLauncher.getDevice().wait( Until.hasObject(By.pkg(getOverviewPackageName())), WAIT_TIME_MS)); return new BaseOverview(mLauncher); } |