use of android.view.inputmethod.InputMethodSubtype.InputMethodSubtypeBuilder in project robolectric by robolectric.
the class ShadowInputMethodManagerTest method setCurrentInputMethodSubtype_isReturned.
/**
* The builder is only available for 19+.
*/
@Config(minSdk = KITKAT)
@Test
public void setCurrentInputMethodSubtype_isReturned() {
InputMethodSubtype inputMethodSubtype = new InputMethodSubtypeBuilder().build();
shadow.setCurrentInputMethodSubtype(inputMethodSubtype);
assertThat(manager.getCurrentInputMethodSubtype()).isEqualTo(inputMethodSubtype);
}
Aggregations