Search in sources :

Example 1 with ArrowKeyMovementMethod

use of android.text.method.ArrowKeyMovementMethod in project robolectric by robolectric.

the class ShadowTextViewTest method testMovementMethod.

@Test
public void testMovementMethod() {
    MovementMethod movement = new ArrowKeyMovementMethod();
    assertNull(textView.getMovementMethod());
    textView.setMovementMethod(movement);
    assertThat(textView.getMovementMethod()).isSameAs(movement);
}
Also used : MovementMethod(android.text.method.MovementMethod) ArrowKeyMovementMethod(android.text.method.ArrowKeyMovementMethod) ArrowKeyMovementMethod(android.text.method.ArrowKeyMovementMethod) Test(org.junit.Test)

Aggregations

ArrowKeyMovementMethod (android.text.method.ArrowKeyMovementMethod)1 MovementMethod (android.text.method.MovementMethod)1 Test (org.junit.Test)1