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 Detail

      • FacetDrillDownTest

        public FacetDrillDownTest()
    • Method Detail

      • testFacetNonLocalized

        public void testFacetNonLocalized()
                                   throws java.lang.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:
        java.lang.Exception
      • testFacetLocalized

        public void testFacetLocalized()
                                throws java.lang.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:
        java.lang.Exception
      • testFacetWithSearch

        public void testFacetWithSearch()
                                 throws java.lang.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:
        java.lang.Exception
      • testRangedFacet

        public void testRangedFacet()
                             throws java.lang.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:
        java.lang.Exception
      • testFacetDrillDown

        public void testFacetDrillDown()
                                throws java.lang.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:
        java.lang.Exception
      • isSuperCategory

        protected boolean isSuperCategory​(ProductModel product,
                                          java.lang.String categoryName)
      • isSuperCategory

        protected boolean isSuperCategory​(CategoryModel category,
                                          java.lang.String categoryName)