use of org.robolectric.android.TestOnLongClickListener in project robolectric by robolectric.
the class ShadowViewTest method performLongClick_shouldClickOnView.
@Test
public void performLongClick_shouldClickOnView() throws Exception {
TestOnLongClickListener clickListener = new TestOnLongClickListener();
view.setOnLongClickListener(clickListener);
view.performLongClick();
assertTrue(clickListener.clicked);
}
Aggregations