@IntegrationTest public class CMSRestrictionServiceTest extends ServicelayerTest
| Modifier and Type | Field and Description |
|---|---|
protected CatalogModel |
catalog |
protected static String |
CATALOG_ID |
protected static String |
CATEGORY_A |
protected static String |
CATEGORY_B |
protected CategoryModel |
categoryA |
protected CategoryModel |
categoryB |
protected static String |
PRODUCT_A |
protected static String |
PRODUCT_B |
protected ProductModel |
productA |
protected ProductModel |
productB |
protected static String |
USER_A |
protected static String |
USER_B |
protected UserModel |
userA |
protected UserModel |
userB |
defaultLanguage, jaloSession| Constructor and Description |
|---|
CMSRestrictionServiceTest() |
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importStream, importStream, isPrefetchModeNoneautowireProperties, getBeanName, prepareApplicationContextAndSessionfinish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivatedprotected UserModel userA
protected UserModel userB
protected CatalogModel catalog
protected CategoryModel categoryA
protected CategoryModel categoryB
protected ProductModel productA
protected ProductModel productB
protected static final String USER_A
protected static final String USER_B
protected static final String CATALOG_ID
protected static final String CATEGORY_A
protected static final String CATEGORY_B
protected static final String PRODUCT_A
protected static final String PRODUCT_B
public void testEvaluateTimeRestriction2True()
public void testEvaluateTimeRestriction2False()
public void testEvaluateUserRestriction2False()
public void testEvaluateUserRestriction2True()
public void testEvaluateUserGroupRestriction2True()
public void testEvaluateUserGroupRestriction2False()
public void testEvaluateCatalogRestriction2False()
public void testEvaluateCatalogRestriction2True()
public void testEvaluateCategoryRestriction2True()
public void testEvaluateCategoryRestriction2False()
public void testEvaluateProductRestriction2True()
public void testEvaluateProductRestriction2False()
public void testEvaluateInverseTimeRestriction2False()
public void testEvaluateInverseTimeRestriction2True()
protected void prepareTimeRestrictionMocks(int before,
int after)
before - indicates how many days before now we will set as activeFromafter - indicates how many days after now will set as activeToprotected void prepareUserRestrictionMocks(UserModel user)
user - given userprotected void prepareUserGroupRestrictionMocks(UserGroupModel userGroup)
userGroup - given user groupprotected void prepareCatalogGroupRestrictionMocks(CatalogModel catalog)
catalog - given catalogprotected void prepareCategoryRestrictionMocks(CategoryModel category)
category - given categoryprotected void prepareProductRestrictionMocks(ProductModel product)
product - given productprotected void prepareInverseTimeRestrictionMocks(int before,
int after)
before - indicates how many days before now we will set as activeFromafter - indicates how many days after now will set as activeToCopyright © 2017 SAP SE. All Rights Reserved.