public abstract class AbstractCommerceServicelayerTransactionalTest extends ServicelayerTransactionalTest
importServicedefaultLanguage, jaloSession| Constructor and Description |
|---|
AbstractCommerceServicelayerTransactionalTest() |
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNoneautowireProperties, getBeanName, prepareApplicationContextAndSessionestablishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSessionpublic AbstractCommerceServicelayerTransactionalTest()
public void save(java.lang.Object modelToSave)
public ProductModel createProduct(java.lang.String code, CatalogVersionModel catalogVersion, java.lang.String variantTypeCode, UnitModel unit, CategoryModel... superCategories)
code - catalogVersion - variantTypeCode - The type code of the variant, usually it can be retrieved from the variant class it self. E.g. if your
variant type is VariantProduct its type code can be retrieved by calling
VariantProductModel._TYPECODEunit - Unit that this product is measured insuperCategories - public CatalogVersionModel createCatalogVersion(java.lang.String catalogId, java.lang.String catalogVersion)
public CatalogModel createCatalog(java.lang.String catalogId)
public java.lang.String getDefaultCatalogId()
public java.lang.String getDefaultCatalogVersion()
public CatalogVersionModel createDefaultCatalogVersion()
public CategoryModel createCategory(java.lang.String code, CatalogVersionModel catalogVersion)
public UnitModel createUnit(java.lang.String code)
public VariantCategoryModel createVariantCategory(java.lang.String code, CatalogVersionModel catalogVersion)
public VariantValueCategoryModel createVariantValueCategory(java.lang.String code, VariantCategoryModel parentCategory, int sequenceNumber, CatalogVersionModel catalogVersion)
public GenericVariantProductModel createGenericVariantProduct(java.lang.String code, ProductModel baseProduct, CatalogVersionModel catalogVersion, VariantValueCategoryModel... variantSuperCategories)
public VariantTypeModel createVariantType(java.lang.String variantTypeCode)
public CategoryService getCategoryService()
public void setCategoryService(CategoryService categoryService)
public ModelService getModelService()
public void setModelService(ModelService modelService)
Copyright © 2018 SAP SE. All Rights Reserved.