Home
last modified time | relevance | path

Searched refs:radioGroup (Results 1 – 4 of 4) sorted by relevance

/external/robolectric/robolectric/src/test/java/org/robolectric/shadows/
DShadowRadioGroupTest.java20 private RadioGroup radioGroup; field in ShadowRadioGroupTest
25 radioGroup = new RadioGroup(context); in setUp()
30 assertThat(radioGroup.getCheckedRadioButtonId()).isEqualTo(-1); in checkedRadioButtonId()
31 radioGroup.check(99); in checkedRadioButtonId()
32 assertThat(radioGroup.getCheckedRadioButtonId()).isEqualTo(99); in checkedRadioButtonId()
38 radioGroup.setOnCheckedChangeListener(listener); in check_shouldCallOnCheckedChangeListener()
40 radioGroup.check(BUTTON_ID); in check_shouldCallOnCheckedChangeListener()
43 assertEquals(Collections.singletonList(radioGroup), listener.onCheckedChangedGroups); in check_shouldCallOnCheckedChangeListener()
50 radioGroup.check(BUTTON_ID); in clearCheck_shouldCallOnCheckedChangeListenerTwice()
51 radioGroup.setOnCheckedChangeListener(listener); in clearCheck_shouldCallOnCheckedChangeListenerTwice()
[all …]
DShadowRadioButtonTest.java71 RadioGroup radioGroup = new RadioGroup(context); in shouldInformRadioGroupThatItIsChecked() local
72 radioGroup.addView(radioButton1); in shouldInformRadioGroupThatItIsChecked()
73 radioGroup.addView(radioButton2); in shouldInformRadioGroupThatItIsChecked()
76 assertThat(radioGroup.getCheckedRadioButtonId()).isEqualTo(radioButton1.getId()); in shouldInformRadioGroupThatItIsChecked()
79 assertThat(radioGroup.getCheckedRadioButtonId()).isEqualTo(radioButton2.getId()); in shouldInformRadioGroupThatItIsChecked()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowRadioGroupTest.java20 private RadioGroup radioGroup; field in ShadowRadioGroupTest
25 radioGroup = new RadioGroup(context); in setUp()
30 assertThat(radioGroup.getCheckedRadioButtonId()).isEqualTo(-1); in checkedRadioButtonId()
31 radioGroup.check(99); in checkedRadioButtonId()
32 assertThat(radioGroup.getCheckedRadioButtonId()).isEqualTo(99); in checkedRadioButtonId()
38 radioGroup.setOnCheckedChangeListener(listener); in check_shouldCallOnCheckedChangeListener()
40 radioGroup.check(BUTTON_ID); in check_shouldCallOnCheckedChangeListener()
43 assertEquals(Arrays.asList(radioGroup), listener.onCheckedChangedGroups); in check_shouldCallOnCheckedChangeListener()
50 radioGroup.check(BUTTON_ID); in clearCheck_shouldCallOnCheckedChangeListenerTwice()
51 radioGroup.setOnCheckedChangeListener(listener); in clearCheck_shouldCallOnCheckedChangeListenerTwice()
[all …]
DShadowRadioButtonTest.java71 RadioGroup radioGroup = new RadioGroup(context); in shouldInformRadioGroupThatItIsChecked() local
72 radioGroup.addView(radioButton1); in shouldInformRadioGroupThatItIsChecked()
73 radioGroup.addView(radioButton2); in shouldInformRadioGroupThatItIsChecked()
76 assertThat(radioGroup.getCheckedRadioButtonId()).isEqualTo(radioButton1.getId()); in shouldInformRadioGroupThatItIsChecked()
79 assertThat(radioGroup.getCheckedRadioButtonId()).isEqualTo(radioButton2.getId()); in shouldInformRadioGroupThatItIsChecked()