use of org.odk.collect.android.fragments.dialogs.NumberPickerDialog in project collect by opendatakit.
the class RangeWidgetUtilsTest method clickingPickerButton_showsNumberPickerDialog.
@Test
public void clickingPickerButton_showsNumberPickerDialog() {
WidgetTestActivity activity = CollectHelpers.createThemedActivity(WidgetTestActivity.class);
RangeWidgetUtils.showNumberPickerDialog(activity, new String[] {}, 0, 0);
RobolectricHelpers.runLooper();
NumberPickerDialog numberPickerDialog = (NumberPickerDialog) activity.getSupportFragmentManager().findFragmentByTag(NumberPickerDialog.NUMBER_PICKER_DIALOG_TAG);
assertNotNull(numberPickerDialog);
}
Aggregations