use of androidx.preference.PreferenceFragmentCompat in project collect by opendatakit.
the class ServerPreferencesAdderTest method whenPreferencesAreAdded_returnsTrue.
@Test
public void whenPreferencesAreAdded_returnsTrue() {
PreferenceFragmentCompat fragment = mock(PreferenceFragmentCompat.class);
ServerPreferencesAdder loader = new ServerPreferencesAdder(fragment);
boolean result = loader.add();
assertTrue(result);
}
use of androidx.preference.PreferenceFragmentCompat in project Resurrection_packages_apps_Settings by ResurrectionRemix.
the class SeekBarPreferenceTest method isSelectable_default_returnFalse.
@Test
@Config(qualifiers = "mcc998")
public void isSelectable_default_returnFalse() {
final PreferenceFragmentCompat fragment = FragmentController.of(new TestFragment(), new Bundle()).create().start().resume().get();
final SeekBarPreference seekBarPreference = fragment.findPreference("seek_bar");
assertThat(seekBarPreference.isSelectable()).isFalse();
}
Aggregations