@DemoTest public class VariantsServiceDemoTest extends ServicelayerTransactionalTest
importServicedefaultLanguage, jaloSession| Constructor and Description |
|---|
VariantsServiceDemoTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp()
prepares some testdata, before execution of every test:
- the test variantTypeModel will be created and saved - the base product (productModel) will be created with assigned variantTypeModel - two VariantAttributeDescriptors will be prepared (not saved) for usage in the tests |
void |
testGettingAssignedVariantAttributesForBaseProduct()
Demonstrates how to use the variantsService to get the existing attributes for base product.
|
void |
testGettingVariantProductsForAttributeValues()
Demonstrates how to use the variantsService to get variant products which matches the given filter with attribute
values.
|
void |
testSettingVariantAttributesCorrectly()
Demonstrates how to use the variantsService to get and set the VariantAttributes for the VariantType.
|
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNoneautowireProperties, getBeanName, prepareApplicationContextAndSessionestablishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSessionpublic void setUp()
throws java.lang.Exception
java.lang.Exceptionpublic void testSettingVariantAttributesCorrectly()
public void testGettingAssignedVariantAttributesForBaseProduct()
public void testGettingVariantProductsForAttributeValues()
Copyright © 2018 SAP SE. All Rights Reserved.