use of org.odk.collect.android.utilities.MediaUtils in project collect by opendatakit.
the class ExVideoWidgetTest method setup.
@Before
public void setup() {
mediaUtils = mock(MediaUtils.class);
CollectHelpers.overrideAppDependencyModule(new AppDependencyModule() {
@Override
public MediaUtils providesMediaUtils(IntentLauncher intentLauncher) {
return mediaUtils;
}
});
when(mediaUtils.isVideoFile(any())).thenReturn(true);
}
use of org.odk.collect.android.utilities.MediaUtils in project collect by opendatakit.
the class ExAudioWidgetTest method setup.
@Before
public void setup() {
mediaUtils = mock(MediaUtils.class);
CollectHelpers.overrideAppDependencyModule(new AppDependencyModule() {
@Override
public MediaUtils providesMediaUtils(IntentLauncher intentLauncher) {
return mediaUtils;
}
});
when(mediaUtils.isAudioFile(any())).thenReturn(true);
}
use of org.odk.collect.android.utilities.MediaUtils in project collect by opendatakit.
the class ExArbitraryFileWidgetTest method setup.
@Before
public void setup() {
mediaUtils = mock(MediaUtils.class);
CollectHelpers.overrideAppDependencyModule(new AppDependencyModule() {
@Override
public MediaUtils providesMediaUtils(IntentLauncher intentLauncher) {
return mediaUtils;
}
});
when(mediaUtils.isAudioFile(any())).thenReturn(true);
}
Aggregations