Class CategoryLinkedDataGeneratorImplTest

java.lang.Object
org.broadleafcommerce.core.web.linkeddata.generator.CategoryLinkedDataGeneratorImplTest

public class CategoryLinkedDataGeneratorImplTest extends Object
  • Constructor Details

    • CategoryLinkedDataGeneratorImplTest

      public CategoryLinkedDataGeneratorImplTest()
  • Method Details

    • setUp

      public void setUp()
    • tearDown

      public void tearDown()
    • testCanHandleWhenCurrentCategoryPresent

      public void testCanHandleWhenCurrentCategoryPresent()
    • testCanHandleWhenCurrentCategoryAbsent

      public void testCanHandleWhenCurrentCategoryAbsent()
    • testGetProductsFromSearchResultAttribute

      public void testGetProductsFromSearchResultAttribute()
    • testGetProductsFallsBackToProductsAttributeWhenSearchResultHasNoProducts

      public void testGetProductsFallsBackToProductsAttributeWhenSearchResultHasNoProducts()
    • testGetProductsFromProductsAttributeWhenNoSearchResult

      public void testGetProductsFromProductsAttributeWhenNoSearchResult()
    • testGetProductsExecutesSearchWhenNoRequestAttributes

      public void testGetProductsExecutesSearchWhenNoRequestAttributes() throws Exception
      Throws:
      Exception
    • testGetProductsReturnsEmptyListWhenSearchReturnsNull

      public void testGetProductsReturnsEmptyListWhenSearchReturnsNull() throws Exception
      Throws:
      Exception
    • testGetProductsReturnsEmptyListWhenSearchResultHasNoProducts

      public void testGetProductsReturnsEmptyListWhenSearchResultHasNoProducts() throws Exception
      Throws:
      Exception
    • testGetProductsReturnsEmptyListWhenSearchThrows

      public void testGetProductsReturnsEmptyListWhenSearchThrows() throws Exception
      Throws:
      Exception
    • testGetLinkedDataJsonBuildsItemList

      public void testGetLinkedDataJsonBuildsItemList() throws Exception
      Throws:
      Exception
    • testGetLinkedDataJsonWithNoProductsBuildsEmptyItemList

      public void testGetLinkedDataJsonWithNoProductsBuildsEmptyItemList() throws Exception
      Throws:
      Exception