Class FacetDrillDownTest

All Implemented Interfaces:
JaloSessionHolder

public class FacetDrillDownTest extends AbstractIntegrationTest
Tests the drill down of facets, i.e. for each selected facet value the remaining facet count should be reduced. This also should work
  • Constructor Details

    • FacetDrillDownTest

      public FacetDrillDownTest()
  • Method Details

    • loadData

      protected void loadData() throws Exception
      Overrides:
      loadData in class AbstractIntegrationTest
      Throws:
      Exception
    • testFacetNonLocalized

      public void testFacetNonLocalized() throws Exception
      Given products with manufacturerName = "Intel" in hwcatalog and with a certain facet count
      and with hwcatalog selected
      and with facet value manufacturerName set to "Intel"
      then a search yields products only with manufacturerName = and the facet count reduced to reflect this
      Throws:
      Exception
    • testFacetLocalized

      public void testFacetLocalized() throws Exception
      Given products with categoryName = "Motherboards_online_de" in hwcatalog and language de and with a certain facet count
      and with hwcatalog selected
      and with language de selected
      and with facet value categoryName set to "Motherboards_online_de"
      then a search yields products only with categoryName = "Motherboards_online_de" and the facet count reduced to reflect this
      Throws:
      Exception
    • testFacetWithSearch

      public void testFacetWithSearch() throws Exception
      Given product in a price range = "101-200" and "graphics" in description, residing in hwcatalog and with a certain facet count
      and with hwcatalog selected
      and with facet price set to "101-200"
      then when searching in description for the string "graphics" the the resulting products must be in the specified price range and and the facet count must be reduced to reflect this
      Throws:
      Exception
    • testRangedFacet

      public void testRangedFacet() throws Exception
      Given product in a price range = "101-200" in hwcatalog and with a certain facet count
      and with hwcatalog selected
      and with facet price set to "101-200" then the the resulting products must be in the specified price range and the facet count mustbe reduced to reflect this
      Throws:
      Exception
    • testFacetDrillDown

      public void testFacetDrillDown() throws Exception
      Given products with manufacturerName = "Intel", categoryName = "Motherboards_online_de" in language de, in hwcatalog and with a certain facet count and with hwcatalog selected
      and with facet value manufacturerName set "Intel"
      and with facet value categoryName set to "Motherboards_online_de"
      then a search yields products only with manufacturerName = "Intel" and the facet count reduced to reflect this, with the facet count lower when the second facet is selected
      Throws:
      Exception
    • isSuperCategory

      protected boolean isSuperCategory(ProductModel product, String categoryName)
    • isSuperCategory

      protected boolean isSuperCategory(CategoryModel category, String categoryName)
    • checkProductCollection

      protected Collection<ProductModel> checkProductCollection(CatalogVersionModel catalogVersion, Collection<? extends ItemModel> items)