assertEquals(0, as.getAccessibleSelectionCount());
}
public final void testSelectAllAccessibleSelection() {
AccessibleSelection as = ac.getAccessibleSelection();
list.add("item1");
list.add("item2");
assertEquals(0, list.getSelectedItems().length);
as.selectAllAccessibleSelection();
assertEquals(1, list.getSelectedItems().length);
assertEquals("item1", list.getSelectedItem());
as.selectAllAccessibleSelection();
assertEquals(1, list.getSelectedItems().length);
assertEquals("item1", list.getSelectedItem());
list.setMultipleMode(true);
as.selectAllAccessibleSelection();
assertEquals(2, list.getSelectedItems().length);
}