From b58b006e44ecf73ad31f79bade8149df7d903dc3 Mon Sep 17 00:00:00 2001 From: Pavlin Radoslavov Date: Wed, 7 Feb 2018 17:23:12 -0800 Subject: [PATCH] Use proper string formatting for the "Active device" string Updated testContextMock() how it checks the bluetooth_connected string. Bug: 72317067 Test: Unit test updated: make ROBOTEST_FILTER=BluetoothDetailsHeaderControllerTest \ RunSettingsRoboTests Manual: two headsets and switching the active device Change-Id: I3db178d71543e4dfa437544350c58241860ae703 --- .../bluetooth/BluetoothDetailsHeaderControllerTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/robotests/src/com/android/settings/bluetooth/BluetoothDetailsHeaderControllerTest.java b/tests/robotests/src/com/android/settings/bluetooth/BluetoothDetailsHeaderControllerTest.java index ab338a17a46..0129b1ced57 100644 --- a/tests/robotests/src/com/android/settings/bluetooth/BluetoothDetailsHeaderControllerTest.java +++ b/tests/robotests/src/com/android/settings/bluetooth/BluetoothDetailsHeaderControllerTest.java @@ -80,7 +80,7 @@ public class BluetoothDetailsHeaderControllerTest extends BluetoothDetailsContro */ @Test public void testContextMock() { - assertThat(mContext.getString(R.string.bluetooth_connected)).isEqualTo("Connected"); + assertThat(mContext.getString(R.string.bluetooth_connected)).isNotNull(); } @Test