@IntegrationTest public class DefaultCMSRestrictionServiceIntegrationTest extends ServicelayerTest
importServicejaloSession| Constructor and Description |
|---|
DefaultCMSRestrictionServiceIntegrationTest() |
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNoneautowireProperties, getBeanName, prepareApplicationContextAndSessionestablishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSessionpublic DefaultCMSRestrictionServiceIntegrationTest()
public void setUp()
throws java.lang.Exception
java.lang.Exceptionpublic void multiCountrySetUp()
throws ImpExException
ImpExExceptionprotected CMSCategoryRestrictionModel getCategoryRestriction(java.util.List<CategoryModel> categories)
protected CMSTimeRestrictionModel getTimeRestriction(int before, int after)
protected CMSInverseRestrictionModel getInverseTimeRestriction(int before, int after)
protected CMSUserGroupRestrictionModel getUserGroupRestriction(UserGroupModel userGroupModel)
protected CMSUserRestrictionModel getUserRestriction(UserModel userModel)
protected RestrictionData getRestrictionData(CatalogModel catalog, CategoryModel category, ProductModel product)
protected CMSCatalogRestrictionModel getCatalogRestriction(java.util.List<CatalogModel> catalogs)
protected CMSProductRestrictionModel getProductRestriction(ProductModel productModel)
protected CategoryModel getCategoryByCode(java.lang.String code)
public void testGetCategoryCodesForRestriction()
public void shouldFindGlobalPage()
throws ImpExException
ImpExExceptionpublic void shouldFindRegionPage()
throws ImpExException
ImpExExceptionpublic void shouldFindLocalPage()
throws ImpExException
ImpExExceptionpublic void shouldEvaluateTimeRestriction2True()
throws RestrictionEvaluationException
RestrictionEvaluationExceptionpublic void shouldEvaluateTimeRestriction2False()
throws RestrictionEvaluationException
RestrictionEvaluationExceptionpublic void shouldEvaluateUserRestriction2False()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldEvaluateUserRestriction2True()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldEvaluateUserGroupRestriction2True()
throws RestrictionEvaluationException
RestrictionEvaluationExceptionpublic void shouldEvaluateUserGroupRestriction2False()
throws RestrictionEvaluationException
RestrictionEvaluationExceptionpublic void shouldEvaluateCatalogRestriction2False()
throws RestrictionEvaluationException
RestrictionEvaluationExceptionpublic void shouldEvaluateCatalogRestriction2True()
throws RestrictionEvaluationException
RestrictionEvaluationExceptionpublic void shouldEvaluateCategoryRestriction2True()
throws RestrictionEvaluationException
RestrictionEvaluationExceptionpublic void shouldEvaluateCategoryRestriction2False()
throws RestrictionEvaluationException
RestrictionEvaluationExceptionpublic void shouldEvaluateProductRestriction2True()
throws RestrictionEvaluationException
RestrictionEvaluationExceptionpublic void shouldEvaluateProductRestriction2False()
throws RestrictionEvaluationException
RestrictionEvaluationExceptionpublic void shouldEvaluateInverseTimeRestriction2False()
throws RestrictionEvaluationException
RestrictionEvaluationExceptionpublic void shouldEvaluateInverseTimeRestriction2True()
throws RestrictionEvaluationException
RestrictionEvaluationExceptionCopyright © 2018 SAP SE. All Rights Reserved.