Class DefaultCMSRestrictionServiceIntegrationTest
java.lang.Object
de.hybris.platform.testframework.HybrisJUnit4Test
de.hybris.platform.servicelayer.ServicelayerBaseTest
de.hybris.platform.servicelayer.ServicelayerTest
de.hybris.platform.cms2.servicelayer.services.impl.DefaultCMSRestrictionServiceIntegrationTest
- All Implemented Interfaces:
JaloSessionHolder
-
Field Summary
Fields 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 TypeMethodDescriptionprotected CMSCatalogRestrictionModelgetCatalogRestriction(List<CatalogModel> catalogs) protected CategoryModelgetCategoryByCode(String code) protected CMSCategoryRestrictionModelgetCategoryRestriction(List<CategoryModel> categories) protected CMSInverseRestrictionModelgetInverseTimeRestriction(int before, int after) protected CMSProductRestrictionModelgetProductRestriction(ProductModel productModel) protected RestrictionDatagetRestrictionData(CatalogModel catalog, CategoryModel category, ProductModel product) protected CMSTimeRestrictionModelgetTimeRestriction(int before, int after) protected CMSUserGroupRestrictionModelgetUserGroupRestriction(UserGroupModel userGroupModel) protected CMSUserRestrictionModelgetUserRestriction(UserModel userModel) voidvoidsetUp()voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidMethods 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
-
Constructor Details
-
DefaultCMSRestrictionServiceIntegrationTest
public DefaultCMSRestrictionServiceIntegrationTest()
-
-
Method Details
-
setUp
- Throws:
Exception
-
multiCountrySetUp
- Throws:
ImpExException
-
getCategoryRestriction
-
getTimeRestriction
-
getInverseTimeRestriction
-
getUserGroupRestriction
-
getUserRestriction
-
getRestrictionData
protected RestrictionData getRestrictionData(CatalogModel catalog, CategoryModel category, ProductModel product) -
getCatalogRestriction
-
getProductRestriction
-
getCategoryByCode
-
testGetCategoryCodesForRestriction
public void testGetCategoryCodesForRestriction() -
shouldFindGlobalPage
- Throws:
ImpExException
-
shouldFindRegionPage
- Throws:
ImpExException
-
shouldFindLocalPage
- Throws:
ImpExException
-
shouldEvaluateTimeRestriction2True
- Throws:
RestrictionEvaluationException
-
shouldEvaluateTimeRestriction2False
- Throws:
RestrictionEvaluationException
-
shouldEvaluateUserRestriction2False
- Throws:
Exception
-
shouldEvaluateUserRestriction2True
- Throws:
Exception
-
shouldEvaluateUserGroupRestriction2True
- Throws:
RestrictionEvaluationException
-
shouldEvaluateUserGroupRestriction2False
- Throws:
RestrictionEvaluationException
-
shouldEvaluateCatalogRestriction2False
- Throws:
RestrictionEvaluationException
-
shouldEvaluateCatalogRestriction2True
- Throws:
RestrictionEvaluationException
-
shouldEvaluateCategoryRestriction2True
- Throws:
RestrictionEvaluationException
-
shouldEvaluateCategoryRestriction2False
- Throws:
RestrictionEvaluationException
-
shouldEvaluateProductRestriction2True
- Throws:
RestrictionEvaluationException
-
shouldEvaluateProductRestriction2False
- Throws:
RestrictionEvaluationException
-
shouldEvaluateInverseTimeRestriction2False
- Throws:
RestrictionEvaluationException
-
shouldEvaluateInverseTimeRestriction2True
- Throws:
RestrictionEvaluationException
-