Class CategoryLinkedDataGeneratorImplTest
java.lang.Object
org.broadleafcommerce.core.web.linkeddata.generator.CategoryLinkedDataGeneratorImplTest
-
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
- Throws:
Exception
-
testGetProductsReturnsEmptyListWhenSearchReturnsNull
- Throws:
Exception
-
testGetProductsReturnsEmptyListWhenSearchResultHasNoProducts
- Throws:
Exception
-
testGetProductsReturnsEmptyListWhenSearchThrows
- Throws:
Exception
-
testGetLinkedDataJsonBuildsItemList
- Throws:
Exception
-
testGetLinkedDataJsonWithNoProductsBuildsEmptyItemList
- Throws:
Exception
-