@Test public void should_try_to_find_drop_down_list_until_it_is_found() { showDropDownListWithDelay(); JList list = finder.findDropDownList(); assertThat(list).isNotNull(); assertThatListContains(list, "first", "second", "third"); }
@Test public void should_find_drop_down_list() { showJComboBoxDropDownList(); JList list = finder.findDropDownList(); assertThat(list).isNotNull(); assertThatListContains(list, "first", "second", "third"); }
@Test public void should_return_null_if_active_drop_down_does_not_belong_to_JComboBox() { robot.rightClick(window.textField); JList list = finder.findDropDownList(); assertThat(list).isNull(); }
@Test public void should_return_null_if_drop_down_was_not_found() { JList list = finder.findDropDownList(); assertThat(list).isNull(); }