Class DisableRuleValidationTest
- 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.DisableRuleValidationTest
-
- All Implemented Interfaces:
JaloSessionHolder
@IntegrationTest public class DisableRuleValidationTest 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 DisableRuleValidationTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AbstractBundleRuleModel
getBundleRule(java.lang.String ruleId)
void
setup()
void
shouldNotDenyForeignersInTargetProducts()
void
shouldNotDenyMixedInTargetProducts()
void
shouldWarnAboutEmptyConditionalProducts()
void
shouldWarnAboutEmptyTargetProductList()
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
-
shouldWarnAboutEmptyConditionalProducts
public void shouldWarnAboutEmptyConditionalProducts() throws ImpExException
- Throws:
ImpExException
-
shouldWarnAboutEmptyTargetProductList
public void shouldWarnAboutEmptyTargetProductList() throws ImpExException
- Throws:
ImpExException
-
shouldNotDenyForeignersInTargetProducts
public void shouldNotDenyForeignersInTargetProducts() throws ImpExException
- Throws:
ImpExException
-
shouldWarnAboutStandaloneInTargetProducts
public void shouldWarnAboutStandaloneInTargetProducts() throws ImpExException
- Throws:
ImpExException
-
shouldNotDenyMixedInTargetProducts
public void shouldNotDenyMixedInTargetProducts() throws ImpExException
- Throws:
ImpExException
-
validate
protected java.util.Set<HybrisConstraintViolation> validate(java.lang.String ruleId)
-
getBundleRule
protected AbstractBundleRuleModel getBundleRule(java.lang.String ruleId)
-
-