FolderSearchFacetDisplayContext implements Serializable { public boolean isRenderNothing() { return _renderNothing; }  long getDisplayStyleGroupId(); FolderFacetPortletInstanceConfiguration getFolderFacetPortletInstanceConfiguration(); List<FolderSearchFacetTermDisplayContext> getFolderSearchFacetTermDisplayContexts(); String getPaginationStartParameterName(); String getParameterName(); String getParameterValue(); List<String> getParameterValues(); boolean isNothingSelected(); boolean isRenderNothing(); void setDisplayStyleGroupId(long displayStyleGroupId); void setFolderFacetPortletInstanceConfiguration(
		FolderFacetPortletInstanceConfiguration
			folderFacetPortletInstanceConfiguration); void setFolderSearchFacetTermDisplayContexts(
		List<FolderSearchFacetTermDisplayContext>
			folderSearchFacetTermDisplayContexts); void setNothingSelected(boolean nothingSelected); void setPaginationStartParameterName(
		String paginationStartParameterName); void setParameterName(String parameterName); void setParameterValue(String parameterValue); void setParameterValues(List<String> parameterValues); void setRenderNothing(boolean renderNothing);  }
@Test public void testEmptySearchResultsWithEmptyTermCollectors() throws Exception { Mockito.when( _facetCollector.getTermCollectors() ).thenReturn( Collections.emptyList() ); FolderSearchFacetDisplayContext folderSearchFacetDisplayContext = createDisplayContext(null); Assert.assertTrue(folderSearchFacetDisplayContext.isRenderNothing()); }
@Test public void testEmptySearchResultsWithUnmatchedTermCollector() throws Exception { Mockito.when( _facetCollector.getTermCollectors() ).thenReturn( Arrays.asList(new DefaultTermCollector("0", 200)) ); FolderSearchFacetDisplayContext folderSearchFacetDisplayContext = createDisplayContext(null); Assert.assertTrue(folderSearchFacetDisplayContext.isRenderNothing()); }