SuggestionsPortletDisplayBuilder { public SuggestionsPortletDisplayContext build() { SuggestionsPortletDisplayContext suggestionsPortletDisplayContext = new SuggestionsPortletDisplayContext(); buildRelatedQueriesSuggestions(suggestionsPortletDisplayContext); buildSpellCheckSuggestion(suggestionsPortletDisplayContext); return suggestionsPortletDisplayContext; } SuggestionsPortletDisplayBuilder(Html html, Http http); SuggestionsPortletDisplayContext build(); void setKeywords(String keywords); void setKeywordsParameterName(String keywordsParameterName); void setRelatedQueriesSuggestions(
		List<String> relatedQueriesSuggestions); void setRelatedQueriesSuggestionsEnabled(
		boolean relatedQueriesSuggestionsEnabled); void setSearchURL(String searchURL); void setSpellCheckSuggestion(String spellCheckSuggestion); void setSpellCheckSuggestionEnabled(
		boolean spellCheckSuggestionEnabled);  }
@Test public void testGetRelatedQueriesSuggestionsEmptyByDefault() { SuggestionsPortletDisplayContext suggestionsPortletDisplayContext = _displayBuilder.build(); List<SuggestionDisplayContext> suggestionDisplayContexts = suggestionsPortletDisplayContext.getRelatedQueriesSuggestions(); Assert.assertTrue(suggestionDisplayContexts.isEmpty()); }
@Test public void testGetSpellCheckSuggestionsNullByDefault() { SuggestionsPortletDisplayContext suggestionsPortletDisplayContext = _displayBuilder.build(); Assert.assertNull( suggestionsPortletDisplayContext.getSpellCheckSuggestion()); }
@Test public void testHasRelatedQueriesSuggestionsFalseByDefault() { SuggestionsPortletDisplayContext suggestionsPortletDisplayContext = _displayBuilder.build(); Assert.assertFalse( suggestionsPortletDisplayContext.hasRelatedQueriesSuggestions()); }
@Test public void testHasSpellCheckSuggestionFalseByDefault() { SuggestionsPortletDisplayContext suggestionsPortletDisplayContext = _displayBuilder.build(); Assert.assertFalse( suggestionsPortletDisplayContext.hasSpellCheckSuggestion()); }
@Test public void testIsRelatedSuggestionsFalseByDefault() { SuggestionsPortletDisplayContext suggestionsPortletDisplayContext = _displayBuilder.build(); Assert.assertFalse( suggestionsPortletDisplayContext. isRelatedQueriesSuggestionsEnabled()); }
@Test public void testIsSpellCheckSuggestionEnabledFalseByDefault() { SuggestionsPortletDisplayContext suggestionsPortletDisplayContext = _displayBuilder.build(); Assert.assertFalse( suggestionsPortletDisplayContext.isSpellCheckSuggestionEnabled()); }