@IntegrationTest public class ValidationServiceIntegrationTest extends AbstractConstraintTest
ValidationService.AbstractConstraintTest.ConstraintconstraintDao, flexibleSearchService, i18nService, modelService, typeService, validationServiceimportServicejaloSession| Constructor and Description |
|---|
ValidationServiceIntegrationTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
prepareTest() |
void |
shouldValidateAttributeStartingWithUppercaseChar() |
void |
shouldValidateDynamicAttributes() |
void |
testLocalizedPropertyForProductForCustomGroup() |
void |
testLocalizedPropertyForProductForDefaultGroup() |
void |
testLocalizedPropertyForVariantForCustomGroup()
test validating a
VariantProduct with constraint for a custom group
PLA-10962 |
void |
testLocalizedPropertyForVariantForDefaultGroup()
test validating a
VariantProduct with constraint for a default group
PLA-10962 |
void |
testOneConstraintForProductAndOneForVariantProductValidatingProduct()
test case two constraint
* one for
ProductModel.getName() assigned to xxx group
* second for ProductModel.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 |
assertModelSavingExceptionWithEvaluatedMessage, assertModelSavingExceptionWithEvaluatedMessage, assertModelSavingExceptionWithMessageKey, assertModelSavingExceptionWithMessageKey, assertTrimmedException, calculateFractionPrecision, checkException, checkException, getDefaultMessage, resetConstraints, unloadEnginecreateCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNoneautowireProperties, getBeanName, prepareApplicationContextAndSessionestablishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSessionpublic void prepareTest()
public void testLocalizedPropertyForVariantForCustomGroup()
VariantProduct with constraint for a custom group
PLA-10962public void testLocalizedPropertyForVariantForDefaultGroup()
VariantProduct with constraint for a default group
PLA-10962public void testOneConstraintForProductAndOneForVariantProductValidatingProduct()
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
public void testLocalizedPropertyForProductForDefaultGroup()
public void testLocalizedPropertyForProductForCustomGroup()
public void shouldValidateAttributeStartingWithUppercaseChar()
public void shouldValidateDynamicAttributes()
Copyright © 2018 SAP SE. All Rights Reserved.