Class ValidationServiceIntegrationTest
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.validation.services.integration.ValidationServiceIntegrationTest
- All Implemented Interfaces:
JaloSessionHolder
Test presenting different use cases of
ValidationService.-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.validation.model.constraints.jsr303.AbstractConstraintTest
AbstractConstraintTest.Constraint -
Field Summary
Fields inherited from class de.hybris.platform.validation.model.constraints.jsr303.AbstractConstraintTest
constraintDao, flexibleSearchService, i18nService, modelService, typeService, validationServiceFields inherited from class de.hybris.platform.servicelayer.ServicelayerTest
importServiceFields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidtest validating aVariantProductwith constraint for a custom group PLA-10962voidtest validating aVariantProductwith constraint for a default group PLA-10962voidtest case two constraint * one forProductModel.getName()assigned to xxx group * second forProductModel.getName()assigned to yyy group validating a product which violates both of them validating goes * for default group no violation should be reported * for xx group first violation should be reported * for yy group second violation should be reported * for xx,yy group both violation should be reportedMethods inherited from class de.hybris.platform.validation.model.constraints.jsr303.AbstractConstraintTest
assertModelSavingExceptionWithEvaluatedMessage, assertModelSavingExceptionWithEvaluatedMessage, assertModelSavingExceptionWithMessageKey, assertModelSavingExceptionWithMessageKey, assertTrimmedException, calculateFractionPrecision, checkException, checkException, checkException, getDefaultMessage, resetConstraints, unloadEngineMethods inherited from class de.hybris.platform.servicelayer.ServicelayerTest
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNoneMethods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getBeanName, prepareApplicationContextAndSessionMethods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
Constructor Details
-
ValidationServiceIntegrationTest
public ValidationServiceIntegrationTest()
-
-
Method Details
-
prepareTest
public void prepareTest() -
testLocalizedPropertyForVariantForCustomGroup
public void testLocalizedPropertyForVariantForCustomGroup()test validating aVariantProductwith constraint for a custom group PLA-10962 -
testLocalizedPropertyForVariantForDefaultGroup
public void testLocalizedPropertyForVariantForDefaultGroup()test validating aVariantProductwith constraint for a default group PLA-10962 -
testOneConstraintForProductAndOneForVariantProductValidatingProduct
public void testOneConstraintForProductAndOneForVariantProductValidatingProduct()test case two constraint * one for
ProductModel.getName()assigned to xxx group * second forProductModel.getName()assigned to yyy group validating a product which violates both of them validating goes * for default group no violation should be reported * for xx group first violation should be reported * for yy group second violation should be reported * for xx,yy group both violation should be reported -
testLocalizedPropertyForProductForDefaultGroup
public void testLocalizedPropertyForProductForDefaultGroup() -
testLocalizedPropertyForProductForCustomGroup
public void testLocalizedPropertyForProductForCustomGroup() -
shouldValidateAttributeStartingWithUppercaseChar
public void shouldValidateAttributeStartingWithUppercaseChar() -
shouldValidateDynamicAttributes
public void shouldValidateDynamicAttributes()
-