Package de.hybris.platform.catalog
Class CatalogTypeServiceTest
java.lang.Object
de.hybris.platform.testframework.HybrisJUnit4Test
de.hybris.platform.servicelayer.ServicelayerBaseTest
de.hybris.platform.servicelayer.ServicelayerTest
de.hybris.platform.servicelayer.ServicelayerTransactionalTest
de.hybris.platform.catalog.CatalogTypeServiceTest
- All Implemented Interfaces:
JaloSessionHolder
This test class tests
CatalogTypeService. It also demonstrates the most common use cases.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final StringFields inherited from class de.hybris.platform.servicelayer.ServicelayerTest
importServiceFields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetUp()voidvoidTests and demonstratesCatalogTypeService.getCatalogVersionForCatalogVersionAwareModel(ItemModel)voidvoidvoidvoidvoidThis method testsCatalogTypeService#getCatalogVersionItem(CatalogVersionModel, String, java.util.Map)for corner cases oftypeCodeargument.voidThis method testsCatalogTypeService#getCatalogVersionItem(CatalogVersionModel, String, java.util.Map)for corner cases ofuniqueKeyValuesargument.voidvoidvoidvoidTests and demonstratesCatalogTypeService.isCatalogVersionAwareModel(de.hybris.platform.core.model.ItemModel)voidvoidvoidvoidAccording toTypeService.getComposedTypeForCode(String)we should get hereUnknownIdentifierException.voidTests and demonstrates usage ofCatalogTypeService.isCatalogVersionAwareType(String).Methods inherited from class de.hybris.platform.servicelayer.ServicelayerTest
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNoneMethods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getBeanName, prepareApplicationContextAndSessionMethods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
Field Details
-
TEST_CATALOG_1
- See Also:
-
TEST_CATALOG_2
- See Also:
-
WINTER_VERSION
- See Also:
-
SPRING_VERSION
- See Also:
-
TEST_USER
- See Also:
-
-
Constructor Details
-
CatalogTypeServiceTest
public CatalogTypeServiceTest()
-
-
Method Details
-
setUp
- Throws:
Exception
-
testGetCatalogVersionItemCornerCasesForType
public void testGetCatalogVersionItemCornerCasesForType() throws CatalogAwareObjectResolvingExceptionThis method testsCatalogTypeService#getCatalogVersionItem(CatalogVersionModel, String, java.util.Map)for corner cases oftypeCodeargument. -
testGetCatalogVersionItemCornerCasesForUniqueKeyValues
public void testGetCatalogVersionItemCornerCasesForUniqueKeyValues() throws CatalogAwareObjectResolvingExceptionThis method testsCatalogTypeService#getCatalogVersionItem(CatalogVersionModel, String, java.util.Map)for corner cases ofuniqueKeyValuesargument. -
testGetCatalogVersionItem
-
testGetAllCatalogItemTypes
public void testGetAllCatalogItemTypes() -
testGetCatalogVersion
public void testGetCatalogVersion()Tests and demonstratesCatalogTypeService.getCatalogVersionForCatalogVersionAwareModel(ItemModel) -
testIsCatalogItemTypeNullType
public void testIsCatalogItemTypeNullType() -
testIsCatalogVersionAwareTypeByNullString
public void testIsCatalogVersionAwareTypeByNullString() -
testIsCatalogVersionAwareTypeByUnknownString
public void testIsCatalogVersionAwareTypeByUnknownString()According toTypeService.getComposedTypeForCode(String)we should get hereUnknownIdentifierException. PLA-10519 -
testIsCatalogVersionAwareTypeByValidString
public void testIsCatalogVersionAwareTypeByValidString()Tests and demonstrates usage ofCatalogTypeService.isCatalogVersionAwareType(String). -
testIsCatalogItemType
public void testIsCatalogItemType() -
testIsCatalogItem
public void testIsCatalogItem()Tests and demonstratesCatalogTypeService.isCatalogVersionAwareModel(de.hybris.platform.core.model.ItemModel) -
testGetCatalogVersionContainerAttributeForNullTypeCode
public void testGetCatalogVersionContainerAttributeForNullTypeCode() -
testGetCatalogVersionContainerAttributeForBadType
public void testGetCatalogVersionContainerAttributeForBadType() -
testGetCatalogVersionContainerAttribute
public void testGetCatalogVersionContainerAttribute() -
testGetCatalogVersionUniqueAttributesModifiersNullType
public void testGetCatalogVersionUniqueAttributesModifiersNullType() -
testGetCatalogVersionUniqueAttributesModifiers
public void testGetCatalogVersionUniqueAttributesModifiers() -
testGetCatalogVersionOverview
public void testGetCatalogVersionOverview()
-