1213141516171819
* @author Artem Koshelev artkoshelev@yandex-team.ru */ public class IsCheckedTest { @Test public void isChecked() { PageWithCheckBox page = new PageWithCheckBox(); assertThat(page.variantA, isSelected()); }
1819202122232425
assertThat(page.variantA, isSelected()); } @Test public void isUnChecked() { PageWithCheckBox page = new PageWithCheckBox(); assertThat(page.variantB, not(isSelected())); }
2425262728293031
assertThat(page.variantB, not(isSelected())); } @Test(expected = NoSuchElementException.class) public void exceptionIfMisssed() { PageWithCheckBox page = new PageWithCheckBox(); assertThat(page.allOfThis, isSelected()); }