Code example for CheckBox

Methods: isCheckedperformClick

0
		assertNotNull(sentCheck);
	} 
 
	@UiThreadTest 
	public void testToggleDate() { 
		dateCheck.performClick();
		assertTrue(dateCheck.isChecked());
		assertEquals("Date layout visibility",
				dateLayout.getVisibility(), View.VISIBLE);
		dateCheck.performClick();
		assertTrue(!dateCheck.isChecked());
		assertEquals("Date layout visibility",
				dateLayout.getVisibility(), View.GONE);
	} 
 
	@UiThreadTest 
	public void testToggleContacts() { 
		contactsCheck.performClick();
		assertTrue(contactsCheck.isChecked());
		assertEquals("Contacts layout visibility",
Connect your IDE to all the code out there  Get Codota for Java