@Test public void testConvertWithConfigurationContainingNullSidebarFacetListFacetConfigurationRestSidebarFacetsIsEmpty() throws Exception { when(discoveryConfiguration.getSidebarFacets()).thenReturn(null); facetConfigurationRest = discoverFacetConfigurationConverter .convert(configurationName, scopeObject, discoveryConfiguration); assertNotNull(facetConfigurationRest); assertTrue(facetConfigurationRest.getSidebarFacets().isEmpty()); }
public FacetConfigurationRest convert(final String configurationName, final String scope, DiscoveryConfiguration configuration) { FacetConfigurationRest facetConfigurationRest = new FacetConfigurationRest(); facetConfigurationRest.setConfiguration(configurationName); facetConfigurationRest.setScope(scope); if (configuration != null) { addSidebarFacets(facetConfigurationRest, configuration.getSidebarFacets()); } return facetConfigurationRest; }
DiscoverFacetConfigurationConverter { public FacetConfigurationRest convert(final String configurationName, final String scope, DiscoveryConfiguration configuration) { FacetConfigurationRest facetConfigurationRest = new FacetConfigurationRest(); facetConfigurationRest.setConfiguration(configurationName); facetConfigurationRest.setScope(scope); if (configuration != null) { addSidebarFacets(facetConfigurationRest, configuration.getSidebarFacets()); } return facetConfigurationRest; } }
DiscoverFacetConfigurationConverter { public FacetConfigurationRest convert(final String configurationName, final String scope, DiscoveryConfiguration configuration) { FacetConfigurationRest facetConfigurationRest = new FacetConfigurationRest(); facetConfigurationRest.setConfiguration(configurationName); facetConfigurationRest.setScope(scope); if (configuration != null) { addSidebarFacets(facetConfigurationRest, configuration.getSidebarFacets()); } return facetConfigurationRest; }  }
DiscoverFacetConfigurationConverter { public FacetConfigurationRest convert(final String configurationName, final String scope, DiscoveryConfiguration configuration) { FacetConfigurationRest facetConfigurationRest = new FacetConfigurationRest(); facetConfigurationRest.setConfiguration(configurationName); facetConfigurationRest.setScope(scope); if (configuration != null) { addSidebarFacets(facetConfigurationRest, configuration.getSidebarFacets()); } return facetConfigurationRest; }  FacetConfigurationRest convert(final String configurationName, final String scope,
                                          DiscoveryConfiguration configuration); }
DiscoverFacetConfigurationConverter { public FacetConfigurationRest convert(final String configurationName, final String scope, DiscoveryConfiguration configuration) { FacetConfigurationRest facetConfigurationRest = new FacetConfigurationRest(); facetConfigurationRest.setConfiguration(configurationName); facetConfigurationRest.setScope(scope); if (configuration != null) { addSidebarFacets(facetConfigurationRest, configuration.getSidebarFacets()); } return facetConfigurationRest; }  FacetConfigurationRest convert(final String configurationName, final String scope,
                                          DiscoveryConfiguration configuration);  }