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
@IntegrationTest public class ValidationServiceIntegrationTest extends AbstractConstraintTest
Test presenting different use cases ofValidationService.
-
-
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, validationService
-
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 ValidationServiceIntegrationTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprepareTest()voidshouldValidateAttributeStartingWithUppercaseChar()voidshouldValidateDynamicAttributes()voidtestLocalizedPropertyForProductForCustomGroup()voidtestLocalizedPropertyForProductForDefaultGroup()voidtestLocalizedPropertyForVariantForCustomGroup()test validating aVariantProductwith constraint for a custom group PLA-10962voidtestLocalizedPropertyForVariantForDefaultGroup()test validating aVariantProductwith constraint for a default group PLA-10962voidtestOneConstraintForProductAndOneForVariantProductValidatingProduct()test 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 reported-
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
-
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()
-
-