*/
public class DefaultSuggestionDisplayTest extends SuggestionDisplayTestBase {
public void testAccessors() {
SuggestBox box = createSuggestBox();
DefaultSuggestionDisplay display = (DefaultSuggestionDisplay) box.getSuggestionDisplay();
PopupPanel popup = display.getPopupPanel();
// isAnimationEnabled.
assertFalse(display.isAnimationEnabled());
assertFalse(popup.isAnimationEnabled());
display.setAnimationEnabled(true);
assertTrue(display.isAnimationEnabled());
assertTrue(popup.isAnimationEnabled());
// isSuggestListShowing.
List<Suggestion> suggestions = createSuggestions("test0", "test1", "test2");
assertFalse(display.isSuggestionListShowing());
assertFalse(popup.isShowing());
display.showSuggestions(box, suggestions, false, false, NULL_CALLBACK);
assertTrue(display.isSuggestionListShowing());
assertTrue(popup.isShowing());
display.hideSuggestions();
assertFalse(display.isSuggestionListShowing());
assertFalse(popup.isShowing());
}