public abstract class BTGIntegrationTest extends ServicelayerTest
defaultLanguage, jaloSession| Constructor and Description |
|---|
BTGIntegrationTest() |
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importStream, importStream, isPrefetchModeNoneautowireProperties, getBeanName, prepareApplicationContextAndSessionfinish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivatedprotected CustomerModel customerA
protected CustomerModel customerB
protected CustomerModel customerC
protected UserModel anonymous
protected static final String USER_A
protected static final String USER_B
protected static final String USER_C
protected static final String GOODTASTE
protected static final String BADTASTE
protected UserGroupModel goodTaste
protected UserGroupModel badTaste
protected CMSSiteModel websiteA
protected CMSSiteModel websiteB
protected CMSSiteModel websiteC
protected static final String WEBSITE_A
protected static final String WEBSITE_B
protected static final String WEBSITE_C
protected static final String NONFULFILLING_PRODUCT_TEMPLATE
protected static final String AUGISTINER
protected static final String HACKERPSCHORR
protected static final String TYSKIE
protected static final String KROSTITZER
protected static final String EXPENSIVE_150
protected static final String EXPENSIVE_60
protected static final String EXPENSIVE_100
protected static final String EXPENSIVE_40
protected static final String ONLINE
protected static final String STAGED
protected static final String DRINKS
protected CatalogVersionModel online
protected CatalogVersionModel staged
protected static final String ALCOHOLS_ONLINE
protected static final String ALCOHOLS_STAGED
protected static final String BEERS_ONLINE
protected static final String BEERS_STAGED
protected static final String POLISHBEERS_ONLINE
protected static final String POLISHBEERS_STAGED
protected static final String TRADITIONALBEERS
protected static final String GERMANBEERS_ONLINE
protected static final String GERMANBEERS_STAGED
protected static final String SOFTDRINKS_ONLINE
protected static final String SOFTDRINKS_STAGED
protected static final String EUR
protected static final String USD
protected CurrencyModel eur
protected CurrencyModel usd
protected BTGSegmentModel segmentA
protected BTGSegmentModel segmentB
protected BTGSegmentModel segmentC
protected BTGRuleModel segmentAOrderRule
protected BTGRuleModel segmentACartRule
protected ModelService modelService
protected TypeService typeService
protected UserService userService
protected ProductService productService
protected CategoryService categoryService
protected I18NService i18nService
protected CatalogService catalogService
protected FlexibleSearchService flexibleSearchService
protected DefaultRuleEvaluator ruleEvaluator
protected BTGEvaluationService btgEvaluationService
protected BTGResultService btgResultService
protected ExpressionService expressionService
protected ConditionEvaluatorRegistry conditionEvaluatorRegistry
protected CatalogVersionModel getDrinksOnlineCatalogVersion()
protected CatalogVersionModel getDrinksCatalogVersion(String catalogVersionName)
protected BTGRuleModel createRule(String name)
protected BTGSegmentModel createSegment()
protected BTGSegmentModel createSegment(BTGConditionEvaluationScope scope, String name, CatalogVersionModel catVersion)
protected void addToCartWithCatalog(String catalogVersionName, String... products) throws Exception
Exceptionprotected OrderModel placeTestOrder(String... products) throws Exception
Exceptionprotected void createSegmentA()
protected void createSegmentB()
protected void createSegmentC()
protected void setCurrencies()
protected void setWebSites()
protected void setCustomersAndUserGroups()
protected void setCatalogVersions()
protected void placeRandomOrdersNotFulfillingConditions(int number,
UserModel customer)
throws Exception
Exceptionprotected void placeRandomOrdersTotalSum(int number,
UserModel customer)
throws Exception
Exceptionprotected BTGOperatorModel createOperator(String operatorString)
protected BTGConditionModel createExpression(BTGOperandModel leftOperand, BTGOperatorModel operator, BTGOperandModel rightOperand)
protected <T extends BTGLastOrdersOperandModel> T createOrderOperand(Class<T> clazz, int lastOrders, String name)
protected <T extends BTGLastOrdersOperandModel> T createOrderOperand(Class<T> clazz, String name)
protected BTGAbstractLiteralOperandModel createGenderLiteralOperand(Gender literalValue)
protected BTGAbstractLiteralOperandModel createDoubleLiteralOperand(Double literalValue)
protected BTGAbstractLiteralOperandModel createIntLiteralOperand(Integer literalValue)
protected BTGAbstractLiteralOperandModel createStringLiteralOperand(String literalValue)
protected BTGAbstractLiteralOperandModel createBooleanLiteralOperand(boolean value)
protected BTGProductsInOrdersOperandModel createProductsInOrdersOperand(int lastOrders, String name)
protected BTGReferencePriceOperandModel createPriceReferenceOperand(double value, String currencyIso)
protected BTGReferenceProductsOperandModel createProductsOperand(String... products)
protected BTGCategoriesInOrdersOperandModel createCategoriesinOrderOperand(String name, boolean withSuperCat, int lastOrders)
protected BTGReferenceCategoriesOperandModel createBTGReferenceCategoriesOperand(String... catNames)
protected BTGReferenceCountriesOperandModel createBTGReferenceCountriesOperandModel(String... isoCodes)
protected BTGLastOrderDateOperandModel createLastOrderDateOperand(String name)
protected BTGOperandModel createReferenceDateOperand(String name, IntervalResolution unit, Integer value)
protected BTGReferenceExactDateOperandModel createReferenceExactDateOperand(String name, Date fromDate)
protected BTGNumberOfOrdersOperandModel createNumberOfOrdersOperand(Date operantFrom, Date operantTo, String name)
protected BTGOperandModel createOperandModel(String name, Class clazz)
protected BTGRuleModel createRule(CatalogVersionModel catVersion, Collection<BTGConditionModel> conditions, String code, BTGRuleType ruleType)
protected void removeUsersOrders(UserModel user)
protected BTGUserCountryOperandModel createCustomerCountryOperand(String code)
protected BTGUserAddressPostalCodeOperandModel createCustomerPostalCodeOperand(String code)
protected AttributeDescriptorModel getAttributeDescriptor(Class modelClass, String attributeQualifier)
protected BTGUserGenderOperandModel createCustomerGenderOperand(String code)
protected BTGQuantityOfProductInCartOperandModel createQuantityOfProductInCartOperand(String code, String productName)
protected BTGQuantityOfProductInCartOperandModel createQuantityOfProductInCartOperand(String code, String catalogVersionName, String productName)
protected void placeOrdersForSegmentA(UserModel customer) throws Exception
Exceptionprotected void placeOrdersForSegmentB(CustomerModel customer) throws Exception
Exceptionprotected BTGConditionModel createExpressionInRuleAndSegment(BTGOperandModel leftOperand, BTGOperatorModel operator, BTGOperandModel rightOperand)
Copyright © 2017 SAP SE. All Rights Reserved.