Code example for RadioButton

Methods: performClick

0
        RadioButton button1 = (RadioButton) view.getRadioGroup().findViewWithTag("one");
        button1.performClick();
        assertEquals("one" , child.get(field.getId())); 
        RadioButton button3 = (RadioButton) view.getRadioGroup().findViewWithTag("three");
        RadioButton button2 = (RadioButton) view.getRadioGroup().findViewWithTag("two");
        button3.performClick();
        button2.performClick();
        assertEquals("two",child.get(field.getId())); 
    } 
 
 
 
}