Class BundleTemplateStructureValidationTest
- 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.BundleTemplateStructureValidationTest
-
- All Implemented Interfaces:
JaloSessionHolder
@IntegrationTest public class BundleTemplateStructureValidationTest 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.ExpectedExceptionthrown-
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 BundleTemplateStructureValidationTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetup()voidshouldAllowDependentComponent()voidshouldAllowLeafsToHaveSelectionCriteria()voidshouldAllowNonLeafsToHaveNoSelectionCriteria()voidshouldAllowRequiredComponent()voidshouldDenyDisableRulesInNonLeafs()voidshouldDenyNonLeafsToHaveAnyCriteria()voidshouldDenyPriceRulesInNonLeafs()voidshouldNotRejectForeignersInDependentComponents()voidshouldNotRejectForeignersInRequiredComponents()voidshouldRejectAncestorInDependingComponents()voidshouldRejectAncestorInRequiredComponents()voidshouldRejectNonLeafInDependingComponents()voidshouldRejectNonLeafInRequiredComponents()voidshouldRejectParentInRequiredComponents()voidshouldRejectThisInDependingComponents()voidshouldRejectThisInRequiredComponents()voidshouldValidateOnCreate()-
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:
setupin classAbstractBundleValidationTest- Throws:
ImpExException
-
shouldAllowRequiredComponent
public void shouldAllowRequiredComponent() throws ImpExException- Throws:
ImpExException
-
shouldAllowDependentComponent
public void shouldAllowDependentComponent() throws ImpExException- Throws:
ImpExException
-
shouldRejectThisInRequiredComponents
public void shouldRejectThisInRequiredComponents() throws ImpExException- Throws:
ImpExException
-
shouldRejectAncestorInRequiredComponents
public void shouldRejectAncestorInRequiredComponents() throws ImpExException- Throws:
ImpExException
-
shouldRejectParentInRequiredComponents
public void shouldRejectParentInRequiredComponents() throws ImpExException- Throws:
ImpExException
-
shouldNotRejectForeignersInRequiredComponents
public void shouldNotRejectForeignersInRequiredComponents() throws ImpExException- Throws:
ImpExException
-
shouldNotRejectForeignersInDependentComponents
public void shouldNotRejectForeignersInDependentComponents() throws ImpExException- Throws:
ImpExException
-
shouldRejectThisInDependingComponents
public void shouldRejectThisInDependingComponents() throws ImpExException- Throws:
ImpExException
-
shouldRejectAncestorInDependingComponents
public void shouldRejectAncestorInDependingComponents() throws ImpExException- Throws:
ImpExException
-
shouldAllowLeafsToHaveSelectionCriteria
public void shouldAllowLeafsToHaveSelectionCriteria() throws ImpExException- Throws:
ImpExException
-
shouldAllowNonLeafsToHaveNoSelectionCriteria
public void shouldAllowNonLeafsToHaveNoSelectionCriteria() throws ImpExException- Throws:
ImpExException
-
shouldDenyNonLeafsToHaveAnyCriteria
public void shouldDenyNonLeafsToHaveAnyCriteria() throws ImpExException- Throws:
ImpExException
-
shouldValidateOnCreate
public void shouldValidateOnCreate() throws ImpExException- Throws:
ImpExException
-
shouldRejectNonLeafInRequiredComponents
public void shouldRejectNonLeafInRequiredComponents() throws ImpExException- Throws:
ImpExException
-
shouldRejectNonLeafInDependingComponents
public void shouldRejectNonLeafInDependingComponents() throws ImpExException- Throws:
ImpExException
-
shouldDenyPriceRulesInNonLeafs
public void shouldDenyPriceRulesInNonLeafs() throws ImpExException- Throws:
ImpExException
-
shouldDenyDisableRulesInNonLeafs
public void shouldDenyDisableRulesInNonLeafs() throws ImpExException- Throws:
ImpExException
-
-