Search in sources :

Example 1 with ImageWidget

use of org.odk.collect.android.widgets.ImageWidget in project collect by opendatakit.

the class ImageConverterTest method getTestImageWidget.

private ImageWidget getTestImageWidget(List<TreeElement> bindAttributes) {
    FormEntryPrompt formEntryPrompt = mock(FormEntryPrompt.class);
    when(formEntryPrompt.getBindAttributes()).thenReturn(bindAttributes);
    ImageWidget imageWidget = mock(ImageWidget.class);
    when(imageWidget.getFormEntryPrompt()).thenReturn(formEntryPrompt);
    return imageWidget;
}
Also used : FormEntryPrompt(org.javarosa.form.api.FormEntryPrompt) ImageWidget(org.odk.collect.android.widgets.ImageWidget)

Aggregations

FormEntryPrompt (org.javarosa.form.api.FormEntryPrompt)1 ImageWidget (org.odk.collect.android.widgets.ImageWidget)1