PopCheckBox extends RelativeLayout { public void setCheck(boolean isChecked) { this.isChecked = isChecked; if (this.isChecked) { stateCheck(); } else { stateUnCheck(); } } PopCheckBox(Context context);  PopCheckBox(Context context, AttributeSet attrs);  PopCheckBox(Context context, AttributeSet attrs, int defStyleAttr); void setCheck(boolean isChecked); boolean isChecked(); void animateChecked(boolean isChecked);  }
@Test public void testSetCheckTrueCheckBoxFill() throws Exception { mPopCheckBox.setCheck(true); assertEquals(1.0f, mCheckBoxFill.getScaleX()); assertEquals(1.0f, mCheckBoxFill.getScaleY()); }
@Test public void testSetCheckTrueCheckBox() throws Exception { mPopCheckBox.setCheck(true); assertEquals(0.0f, mCheckBox.getScaleX()); assertEquals(0.0f, mCheckBox.getScaleY()); }
@Test public void testSetCheckFalseCheckBoxFill() throws Exception { mPopCheckBox.setCheck(false); assertEquals(0.0f, mCheckBoxFill.getScaleX()); assertEquals(0.0f, mCheckBoxFill.getScaleY()); }
@Test public void testSetCheckFalseCheckBox() throws Exception { mPopCheckBox.setCheck(false); assertEquals(1.0f, mCheckBox.getScaleX()); assertEquals(1.0f, mCheckBox.getScaleY()); }