SingleLiveSearchSelectionHandler implements LiveSearchSelectionHandler<TYPE> { @Override public void selectItem(LiveSearchSelectorItem<TYPE> item) { if(selectedItem == null) { selectedItem = item; selectedItem.select(); } else { if(!selectedItem.getKey().equals(item.getKey())) { selectedItem.reset(); selectedItem = item; selectedItem.select(); } } if(onChangeNotification != null) { onChangeNotification.execute(); } } SingleLiveSearchSelectionHandler(); @Override String getDropDownMenuHeader(); @Override void registerItem(final LiveSearchSelectorItem<TYPE> item); @Override void selectItem(LiveSearchSelectorItem<TYPE> item); @Override void selectKey(TYPE key); TYPE getSelectedKey(); String getSelectedValue(); @Override void setLiveSearchSelectionCallback(Command command); @Override void clearSelection(); @Override boolean isMultipleSelection();  }
@Test public void testSelectItem() { doTestSelectItem(); }