public class AbstractBundleValidationTest extends AbstractConstraintTest
AbstractConstraintTest.Constraint| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
FIELD_MESSAGE |
protected static java.lang.String |
FIELD_PROPERTY |
protected static java.lang.String |
FIELD_SEVERITY |
constraintDao, flexibleSearchService, i18nService, modelService, typeServiceimportServicejaloSession| Constructor and Description |
|---|
AbstractBundleValidationTest() |
| Modifier and Type | Method and Description |
|---|---|
protected BundleTemplateModel |
getBundleTemplate(java.lang.String templateId)
Get bundle template by ID.
|
protected CatalogVersionModel |
getCatalog() |
protected CatalogVersionService |
getCatalogVersionService() |
protected ConstraintGroupModel |
getGroup(java.lang.String id) |
protected ValidationService |
getValidationService() |
protected void |
importString(java.lang.String impex)
Import given string as ImpEx.
|
void |
setup() |
protected java.util.Set<HybrisConstraintViolation> |
validate(java.lang.String bundleTemplateId,
java.lang.String constraintGroupId)
Validate bundle template against given validation group.
|
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, takeJaloSessionprotected static final java.lang.String FIELD_MESSAGE
protected static final java.lang.String FIELD_PROPERTY
protected static final java.lang.String FIELD_SEVERITY
public void setup()
throws ImpExException
ImpExExceptionprotected java.util.Set<HybrisConstraintViolation> validate(java.lang.String bundleTemplateId, java.lang.String constraintGroupId)
bundleTemplateId - bundle template idconstraintGroupId - id of validator group to useprotected BundleTemplateModel getBundleTemplate(java.lang.String templateId)
templateId - idprotected CatalogVersionModel getCatalog()
protected ConstraintGroupModel getGroup(java.lang.String id)
protected void importString(java.lang.String impex)
throws ImpExException
impex - impex script bodyImpExExceptionprotected ValidationService getValidationService()
protected CatalogVersionService getCatalogVersionService()
Copyright © 2018 SAP SE. All Rights Reserved.