@IntegrationTest public class PriceRuleValidationTest extends AbstractBundleValidationTest
AbstractConstraintTest.Constraint| Modifier and Type | Field and Description |
|---|---|
ExpectedException |
thrown |
FIELD_MESSAGE, FIELD_PROPERTY, FIELD_SEVERITYconstraintDao, flexibleSearchService, i18nService, modelService, typeServicedefaultLanguage, jaloSession| Constructor and Description |
|---|
PriceRuleValidationTest() |
| Modifier and Type | Method and Description |
|---|---|
protected AbstractBundleRuleModel |
getBundleRule(String ruleId) |
void |
shouldDenyNonLeafsToHavePriceRules() |
void |
shouldInformAboutEmptyConditionalProducts() |
void |
shouldRejectRulesWithForeignTargetProducts() |
void |
shouldWarnAboutEmptyTargetProductList() |
void |
shouldWarnAboutForeignersInTargetProducts() |
void |
shouldWarnAboutMixedInTargetProducts() |
void |
shouldWarnAboutStandaloneInTargetProducts() |
protected Set<HybrisConstraintViolation> |
validate(String ruleId) |
getBundleTemplate, getCatalog, getCatalogVersionService, getGroup, getValidationService, importString, setup, validateassertModelSavingExceptionWithEvaluatedMessage, assertModelSavingExceptionWithEvaluatedMessage, assertModelSavingExceptionWithMessageKey, assertModelSavingExceptionWithMessageKey, assertTrimmedException, calculateFractionPrecision, checkException, checkException, getDefaultMessage, resetConstraints, unloadEnginecreateCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importStream, importStream, isPrefetchModeNoneautowireProperties, getBeanName, prepareApplicationContextAndSessionfinish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivatedpublic void shouldDenyNonLeafsToHavePriceRules()
throws ImpExException
ImpExExceptionpublic void shouldInformAboutEmptyConditionalProducts()
throws ImpExException
ImpExExceptionpublic void shouldWarnAboutEmptyTargetProductList()
throws ImpExException
ImpExExceptionpublic void shouldWarnAboutForeignersInTargetProducts()
throws ImpExException
ImpExExceptionpublic void shouldWarnAboutStandaloneInTargetProducts()
throws ImpExException
ImpExExceptionpublic void shouldWarnAboutMixedInTargetProducts()
throws ImpExException
ImpExExceptionpublic void shouldRejectRulesWithForeignTargetProducts()
throws ImpExException
ImpExExceptionprotected Set<HybrisConstraintViolation> validate(String ruleId)
protected AbstractBundleRuleModel getBundleRule(String ruleId)
Copyright © 2017 SAP SE. All Rights Reserved.