Java Examples for org.testatoo.cartridge.html4.Language.assertThat

The following java examples will help you to understand the usage of org.testatoo.cartridge.html4.Language.assertThat. These source code samples are taken from different open source projects.

Example 1
Project: testatoo-html4-master  File: MatchersTest.java View source code
@Test
public void test_optionSize_matcher() {
    assertThat(selectWith3Options(), has(3, options()));
    try {
        assertThat(selectWith3Options(), has(2, options()));
        fail();
    } catch (AssertionError e) {
        assertEquals(format(e.getMessage()), "Expected: option values size : 2 but: was <class org.testatoo.cartridge.html4.element.Select with state : enabled:true, visible:true, values:[UK, Canada, Italy], selectedValues:[UK, Italy], visibleRows:2>");
    }
}