From 025ec2ba589c5be734521a8dc6eca15fced46363 Mon Sep 17 00:00:00 2001 From: Andreas Gampe Date: Mon, 26 Feb 2018 11:28:21 -0800 Subject: [PATCH] Settings: Fix assertThat in test Truth.assertThat is a fluent-style API. Fix the tests to actually do something. Found by errorprone. Bug: 73513670 Test: m RunSettingsRoboTests Test: m javac-check RUN_ERROR_PRONE=true Change-Id: I032f6741ac0c728781a9d22ab6158e7b74a30167 --- .../android/settings/bluetooth/BluetoothPairingDialogTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/robotests/src/com/android/settings/bluetooth/BluetoothPairingDialogTest.java b/tests/robotests/src/com/android/settings/bluetooth/BluetoothPairingDialogTest.java index fba11de8066..e5ecc9874c2 100644 --- a/tests/robotests/src/com/android/settings/bluetooth/BluetoothPairingDialogTest.java +++ b/tests/robotests/src/com/android/settings/bluetooth/BluetoothPairingDialogTest.java @@ -155,7 +155,7 @@ public class BluetoothPairingDialogTest { // check that showSoftInput was called to make input method appear when the dialog was shown assertThat(view.isFocused()).isTrue(); - assertThat(imm.isActive()); + assertThat(imm.isActive()).isTrue(); verify(imm).showSoftInput(view, InputMethodManager.SHOW_IMPLICIT); }