Java 类org.robolectric.shadows.ShadowDatePickerDialog 实例源码

项目:lmis-moz-mobile    文件:StockMovementViewHolderTest.java   
@Test
public void shouldShowMovementDateDialogOnClick() {
    viewModel.setDraft(true);
    viewHolder.populate(viewModel, stockCard);

    viewHolder.txMovementDate.performClick();

    DatePickerDialog datePickerDialog = (DatePickerDialog) ShadowDatePickerDialog.getLatestDialog();
    assertNotNull(datePickerDialog);
}
项目:FullRobolectricTestSample    文件:Robolectric.java   
public static ShadowDatePickerDialog shadowOf(DatePickerDialog instance) {
  return (ShadowDatePickerDialog) shadowOf_(instance);
}