Class PriceRuleValidationTest
- java.lang.Object
-
- de.hybris.platform.testframework.HybrisJUnit4Test
-
- de.hybris.platform.servicelayer.ServicelayerBaseTest
-
- de.hybris.platform.servicelayer.ServicelayerTest
-
- de.hybris.platform.servicelayer.ServicelayerTransactionalTest
-
- de.hybris.platform.validation.model.constraints.jsr303.AbstractConstraintTest
-
- de.hybris.platform.configurablebundleservices.constraints.AbstractBundleValidationTest
-
- de.hybris.platform.configurablebundleservices.constraints.PriceRuleValidationTest
-
- All Implemented Interfaces:
JaloSessionHolder
@IntegrationTest public class PriceRuleValidationTest extends AbstractBundleValidationTest
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.validation.model.constraints.jsr303.AbstractConstraintTest
AbstractConstraintTest.Constraint
-
-
Field Summary
Fields Modifier and Type Field Description org.junit.rules.ExpectedException
thrown
-
Fields inherited from class de.hybris.platform.configurablebundleservices.constraints.AbstractBundleValidationTest
FIELD_MESSAGE, FIELD_PROPERTY, FIELD_SEVERITY
-
Fields inherited from class de.hybris.platform.validation.model.constraints.jsr303.AbstractConstraintTest
constraintDao, flexibleSearchService, i18nService, modelService, typeService
-
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 PriceRuleValidationTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AbstractBundleRuleModel
getBundleRule(java.lang.String ruleId)
void
setup()
void
shouldInformAboutEmptyConditionalProducts()
void
shouldRejectRulesWithForeignTargetProducts()
void
shouldWarnAboutEmptyTargetProductList()
void
shouldWarnAboutForeignersInTargetProducts()
void
shouldWarnAboutMixedInTargetProducts()
void
shouldWarnAboutStandaloneInTargetProducts()
protected java.util.Set<HybrisConstraintViolation>
validate(java.lang.String ruleId)
-
Methods inherited from class de.hybris.platform.configurablebundleservices.constraints.AbstractBundleValidationTest
getBundleTemplate, getCatalog, getCatalogVersionService, getGroup, getValidationService, importString, validate
-
Methods inherited from class de.hybris.platform.validation.model.constraints.jsr303.AbstractConstraintTest
assertModelSavingExceptionWithEvaluatedMessage, assertModelSavingExceptionWithEvaluatedMessage, assertModelSavingExceptionWithMessageKey, assertModelSavingExceptionWithMessageKey, assertTrimmedException, calculateFractionPrecision, checkException, checkException, checkException, getDefaultMessage, resetConstraints, unloadEngine
-
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 ImpExException
- Overrides:
setup
in classAbstractBundleValidationTest
- Throws:
ImpExException
-
shouldInformAboutEmptyConditionalProducts
public void shouldInformAboutEmptyConditionalProducts() throws ImpExException
- Throws:
ImpExException
-
shouldWarnAboutEmptyTargetProductList
public void shouldWarnAboutEmptyTargetProductList() throws ImpExException
- Throws:
ImpExException
-
shouldWarnAboutForeignersInTargetProducts
public void shouldWarnAboutForeignersInTargetProducts() throws ImpExException
- Throws:
ImpExException
-
shouldWarnAboutStandaloneInTargetProducts
public void shouldWarnAboutStandaloneInTargetProducts() throws ImpExException
- Throws:
ImpExException
-
shouldWarnAboutMixedInTargetProducts
public void shouldWarnAboutMixedInTargetProducts() throws ImpExException
- Throws:
ImpExException
-
shouldRejectRulesWithForeignTargetProducts
public void shouldRejectRulesWithForeignTargetProducts() throws ImpExException
- Throws:
ImpExException
-
validate
protected java.util.Set<HybrisConstraintViolation> validate(java.lang.String ruleId)
-
getBundleRule
protected AbstractBundleRuleModel getBundleRule(java.lang.String ruleId)
-
-