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
This commit is contained in:
@@ -155,7 +155,7 @@ public class BluetoothPairingDialogTest {
|
|||||||
|
|
||||||
// check that showSoftInput was called to make input method appear when the dialog was shown
|
// check that showSoftInput was called to make input method appear when the dialog was shown
|
||||||
assertThat(view.isFocused()).isTrue();
|
assertThat(view.isFocused()).isTrue();
|
||||||
assertThat(imm.isActive());
|
assertThat(imm.isActive()).isTrue();
|
||||||
verify(imm).showSoftInput(view, InputMethodManager.SHOW_IMPLICIT);
|
verify(imm).showSoftInput(view, InputMethodManager.SHOW_IMPLICIT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user