@IntegrationTest public class ProductDaoTest extends ServicelayerTest
| Modifier and Type | Field and Description |
|---|---|
protected CatalogVersionService |
catalogVersionService |
importServicejaloSession| Constructor and Description |
|---|
ProductDaoTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp() |
void |
tearDown() |
void |
testFindAllProductsCount() |
void |
testFindAllProductsCountByEmptyCategory() |
void |
testFindProduct() |
void |
testFindProductsCountForOneCategory() |
void |
testFindProductsFromCatalogVersion() |
void |
testFindProductsFromCatalogVersionWhenNull() |
void |
testFindProductWhenCatalogVersionIsNull() |
void |
testFindProductWhenCodeIsNull() |
void |
testFindProductWhenCodeIsNullAndCatalogVersionNotNull() |
void |
testFindProductWhenCodeIsUnknown() |
void |
testFindProductWhenThereIsNoResults() |
void |
testGetProductFromCatalogVersionWhenNoActiveCatalogVersionIsSet() |
void |
testGetProductsByCategory() |
void |
testGetProductsByCategoryWhenCategoryIsNull() |
void |
testGetProductsByCategoryWithLimit() |
void |
testGetProductsWithStatus() |
void |
testVariants() |
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNoneautowireProperties, getBeanName, prepareApplicationContextAndSessionestablishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSessionprotected CatalogVersionService catalogVersionService
public void setUp()
throws java.lang.Exception
java.lang.Exceptionpublic void tearDown()
public void testFindProduct()
throws java.lang.Exception
java.lang.Exceptionpublic void testFindProductWhenCodeIsNull()
throws java.lang.Exception
java.lang.Exceptionpublic void testFindProductWhenCodeIsUnknown()
throws java.lang.Exception
java.lang.Exceptionpublic void testGetProductsByCategory()
throws java.lang.Exception
java.lang.Exceptionpublic void testGetProductsWithStatus()
throws java.lang.Exception
java.lang.Exceptionpublic void testGetProductsByCategoryWhenCategoryIsNull()
throws java.lang.Exception
java.lang.Exceptionpublic void testGetProductsByCategoryWithLimit()
throws java.lang.Exception
java.lang.Exceptionpublic void testVariants()
throws JaloDuplicateQualifierException,
JaloItemNotFoundException
public void testGetProductFromCatalogVersionWhenNoActiveCatalogVersionIsSet()
throws java.lang.Exception
java.lang.Exceptionpublic void testFindProductWhenCatalogVersionIsNull()
throws java.lang.Exception
java.lang.Exceptionpublic void testFindProductWhenCodeIsNullAndCatalogVersionNotNull()
throws java.lang.Exception
java.lang.Exceptionpublic void testFindProductWhenThereIsNoResults()
throws java.lang.Exception
java.lang.Exceptionpublic void testFindAllProductsCount()
throws java.lang.Exception
java.lang.Exceptionpublic void testFindAllProductsCountByEmptyCategory()
public void testFindProductsCountForOneCategory()
public void testFindProductsFromCatalogVersion()
public void testFindProductsFromCatalogVersionWhenNull()
Copyright © 2018 SAP SE. All Rights Reserved.