Class BundleTemplateProductValidationTest
- 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.BundleTemplateProductValidationTest
-
- All Implemented Interfaces:
JaloSessionHolder
@IntegrationTest public class BundleTemplateProductValidationTest 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.ExpectedException
thrown
-
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 BundleTemplateProductValidationTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setup()
void
shouldAllowLeafWithProducts()
void
shouldAllowNonLeafWithoutProducts()
void
shouldRejectNonLeafWithProducts()
void
shouldWarnAboutEmptyLeafs()
void
shouldWarnAboutEmptyProductListOfLeaf()
-
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:
setup
in classAbstractBundleValidationTest
- Throws:
ImpExException
-
shouldWarnAboutEmptyLeafs
public void shouldWarnAboutEmptyLeafs() throws ImpExException
- Throws:
ImpExException
-
shouldAllowLeafWithProducts
public void shouldAllowLeafWithProducts() throws ImpExException
- Throws:
ImpExException
-
shouldAllowNonLeafWithoutProducts
public void shouldAllowNonLeafWithoutProducts() throws ImpExException
- Throws:
ImpExException
-
shouldWarnAboutEmptyProductListOfLeaf
public void shouldWarnAboutEmptyProductListOfLeaf() throws ImpExException
- Throws:
ImpExException
-
shouldRejectNonLeafWithProducts
public void shouldRejectNonLeafWithProducts() throws ImpExException
- Throws:
ImpExException
-
-