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
@IntegrationTest public class DefaultCMSRestrictionServiceIntegrationTest extends ServicelayerTest
-
-
Field Summary
-
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 DefaultCMSRestrictionServiceIntegrationTest()
-
Method Summary
-
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
-
-
-
-
Method Detail
-
setUp
public void setUp() throws java.lang.Exception
- Throws:
java.lang.Exception
-
multiCountrySetUp
public void multiCountrySetUp() throws ImpExException
- Throws:
ImpExException
-
getCategoryRestriction
protected CMSCategoryRestrictionModel getCategoryRestriction(java.util.List<CategoryModel> categories)
-
getTimeRestriction
protected CMSTimeRestrictionModel getTimeRestriction(int before, int after)
-
getInverseTimeRestriction
protected CMSInverseRestrictionModel getInverseTimeRestriction(int before, int after)
-
getUserGroupRestriction
protected CMSUserGroupRestrictionModel getUserGroupRestriction(UserGroupModel userGroupModel)
-
getUserRestriction
protected CMSUserRestrictionModel getUserRestriction(UserModel userModel)
-
getRestrictionData
protected RestrictionData getRestrictionData(CatalogModel catalog, CategoryModel category, ProductModel product)
-
getCatalogRestriction
protected CMSCatalogRestrictionModel getCatalogRestriction(java.util.List<CatalogModel> catalogs)
-
getProductRestriction
protected CMSProductRestrictionModel getProductRestriction(ProductModel productModel)
-
getCategoryByCode
protected CategoryModel getCategoryByCode(java.lang.String code)
-
testGetCategoryCodesForRestriction
public void testGetCategoryCodesForRestriction()
-
shouldFindGlobalPage
public void shouldFindGlobalPage() throws ImpExException
- Throws:
ImpExException
-
shouldFindRegionPage
public void shouldFindRegionPage() throws ImpExException
- Throws:
ImpExException
-
shouldFindLocalPage
public void shouldFindLocalPage() throws ImpExException
- Throws:
ImpExException
-
shouldEvaluateTimeRestriction2True
public void shouldEvaluateTimeRestriction2True() throws RestrictionEvaluationException
- Throws:
RestrictionEvaluationException
-
shouldEvaluateTimeRestriction2False
public void shouldEvaluateTimeRestriction2False() throws RestrictionEvaluationException
- Throws:
RestrictionEvaluationException
-
shouldEvaluateUserRestriction2False
public void shouldEvaluateUserRestriction2False() throws java.lang.Exception
- Throws:
java.lang.Exception
-
shouldEvaluateUserRestriction2True
public void shouldEvaluateUserRestriction2True() throws java.lang.Exception
- Throws:
java.lang.Exception
-
shouldEvaluateUserGroupRestriction2True
public void shouldEvaluateUserGroupRestriction2True() throws RestrictionEvaluationException
- Throws:
RestrictionEvaluationException
-
shouldEvaluateUserGroupRestriction2False
public void shouldEvaluateUserGroupRestriction2False() throws RestrictionEvaluationException
- Throws:
RestrictionEvaluationException
-
shouldEvaluateCatalogRestriction2False
public void shouldEvaluateCatalogRestriction2False() throws RestrictionEvaluationException
- Throws:
RestrictionEvaluationException
-
shouldEvaluateCatalogRestriction2True
public void shouldEvaluateCatalogRestriction2True() throws RestrictionEvaluationException
- Throws:
RestrictionEvaluationException
-
shouldEvaluateCategoryRestriction2True
public void shouldEvaluateCategoryRestriction2True() throws RestrictionEvaluationException
- Throws:
RestrictionEvaluationException
-
shouldEvaluateCategoryRestriction2False
public void shouldEvaluateCategoryRestriction2False() throws RestrictionEvaluationException
- Throws:
RestrictionEvaluationException
-
shouldEvaluateProductRestriction2True
public void shouldEvaluateProductRestriction2True() throws RestrictionEvaluationException
- Throws:
RestrictionEvaluationException
-
shouldEvaluateProductRestriction2False
public void shouldEvaluateProductRestriction2False() throws RestrictionEvaluationException
- Throws:
RestrictionEvaluationException
-
shouldEvaluateInverseTimeRestriction2False
public void shouldEvaluateInverseTimeRestriction2False() throws RestrictionEvaluationException
- Throws:
RestrictionEvaluationException
-
shouldEvaluateInverseTimeRestriction2True
public void shouldEvaluateInverseTimeRestriction2True() throws RestrictionEvaluationException
- Throws:
RestrictionEvaluationException
-
-