Package de.hybris.platform.product.daos
Class ProductDaoTest
- java.lang.Object
-
- de.hybris.platform.testframework.HybrisJUnit4Test
-
- de.hybris.platform.servicelayer.ServicelayerBaseTest
-
- de.hybris.platform.servicelayer.ServicelayerTest
-
- de.hybris.platform.product.daos.ProductDaoTest
-
- All Implemented Interfaces:
JaloSessionHolder
@IntegrationTest public class ProductDaoTest extends ServicelayerTest
-
-
Field Summary
Fields Modifier and Type Field Description protected CatalogVersionServicecatalogVersionService-
Fields inherited from class de.hybris.platform.servicelayer.ServicelayerTest
importService
-
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession
-
-
Constructor Summary
Constructors Constructor Description ProductDaoTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetUp()voidtearDown()voidtestFindAllProductsCount()voidtestFindAllProductsCountByEmptyCategory()voidtestFindProduct()voidtestFindProductsCountForOneCategory()voidtestFindProductsFromCatalogVersion()voidtestFindProductsFromCatalogVersionWhenNull()voidtestFindProductWhenCatalogVersionIsNull()voidtestFindProductWhenCodeIsNull()voidtestFindProductWhenCodeIsNullAndCatalogVersionNotNull()voidtestFindProductWhenCodeIsUnknown()voidtestFindProductWhenThereIsNoResults()voidtestGetProductFromCatalogVersionWhenNoActiveCatalogVersionIsSet()voidtestGetProductsByCategory()voidtestGetProductsByCategoryWhenCategoryIsNull()voidtestGetProductsByCategoryWithLimit()voidtestGetProductsWithStatus()voidtestVariants()-
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerTest
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNone
-
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getBeanName, prepareApplicationContextAndSession
-
Methods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
-
-
-
Field Detail
-
catalogVersionService
protected CatalogVersionService catalogVersionService
-
-
Method Detail
-
setUp
public void setUp() throws java.lang.Exception- Throws:
java.lang.Exception
-
tearDown
public void tearDown()
-
testFindProduct
public void testFindProduct() throws java.lang.Exception- Throws:
java.lang.Exception
-
testFindProductWhenCodeIsNull
public void testFindProductWhenCodeIsNull() throws java.lang.Exception- Throws:
java.lang.Exception
-
testFindProductWhenCodeIsUnknown
public void testFindProductWhenCodeIsUnknown() throws java.lang.Exception- Throws:
java.lang.Exception
-
testGetProductsByCategory
public void testGetProductsByCategory() throws java.lang.Exception- Throws:
java.lang.Exception
-
testGetProductsWithStatus
public void testGetProductsWithStatus() throws java.lang.Exception- Throws:
java.lang.Exception
-
testGetProductsByCategoryWhenCategoryIsNull
public void testGetProductsByCategoryWhenCategoryIsNull() throws java.lang.Exception- Throws:
java.lang.Exception
-
testGetProductsByCategoryWithLimit
public void testGetProductsByCategoryWithLimit() throws java.lang.Exception- Throws:
java.lang.Exception
-
testVariants
public void testVariants() throws JaloDuplicateQualifierException, JaloItemNotFoundException
-
testGetProductFromCatalogVersionWhenNoActiveCatalogVersionIsSet
public void testGetProductFromCatalogVersionWhenNoActiveCatalogVersionIsSet() throws java.lang.Exception- Throws:
java.lang.Exception
-
testFindProductWhenCatalogVersionIsNull
public void testFindProductWhenCatalogVersionIsNull() throws java.lang.Exception- Throws:
java.lang.Exception
-
testFindProductWhenCodeIsNullAndCatalogVersionNotNull
public void testFindProductWhenCodeIsNullAndCatalogVersionNotNull() throws java.lang.Exception- Throws:
java.lang.Exception
-
testFindProductWhenThereIsNoResults
public void testFindProductWhenThereIsNoResults() throws java.lang.Exception- Throws:
java.lang.Exception
-
testFindAllProductsCount
public void testFindAllProductsCount() throws java.lang.Exception- Throws:
java.lang.Exception
-
testFindAllProductsCountByEmptyCategory
public void testFindAllProductsCountByEmptyCategory()
-
testFindProductsCountForOneCategory
public void testFindProductsCountForOneCategory()
-
testFindProductsFromCatalogVersion
public void testFindProductsFromCatalogVersion()
-
testFindProductsFromCatalogVersionWhenNull
public void testFindProductsFromCatalogVersionWhenNull()
-
-