@IntegrationTest public class DefaultBundleTemplateServiceNestedIntegrationTest extends ServicelayerTest
| Modifier and Type | Field and Description |
|---|---|
static String |
AUTOPICK_COMPONENT |
protected BundleTemplateService |
bundleTemplateService |
protected CartModel |
cart |
static String |
CATALOG_ID |
static String |
FOURTH_PACKAGE |
static String |
NESTED_COMPONENT |
static String |
OPTIONAL_COMPONENT |
static String |
PARENT_PACKAGE |
static String |
PREMIUM_COMPONENT |
static String |
PREMIUM01 |
static String |
PRODUCT01 |
static String |
PRODUCT02 |
static String |
REGULAR_COMPONENT |
static String |
ROOT_BUNDLE_TEMPLATE |
static String |
ROOT_COMPONENT |
static String |
SECOND_PACKAGE |
static String |
STAGED_PACKAGE |
static String |
STANDALONE01 |
static String |
THIRD_PACKAGE |
ExpectedException |
thrown |
protected UnitModel |
unitModel |
defaultLanguage, jaloSession| Constructor and Description |
|---|
DefaultBundleTemplateServiceNestedIntegrationTest() |
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importStream, importStream, isPrefetchModeNoneautowireProperties, getBeanName, prepareApplicationContextAndSessionfinish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivatedpublic static final String PARENT_PACKAGE
public static final String SECOND_PACKAGE
public static final String THIRD_PACKAGE
public static final String FOURTH_PACKAGE
public static final String STAGED_PACKAGE
public static final String REGULAR_COMPONENT
public static final String OPTIONAL_COMPONENT
public static final String PREMIUM_COMPONENT
public static final String ROOT_COMPONENT
public static final String NESTED_COMPONENT
public static final String ROOT_BUNDLE_TEMPLATE
public static final String AUTOPICK_COMPONENT
public static final String PRODUCT01
public static final String PREMIUM01
public static final String PRODUCT02
public static final String STANDALONE01
public static final String CATALOG_ID
public ExpectedException thrown
protected BundleTemplateService bundleTemplateService
protected UnitModel unitModel
protected CartModel cart
public DefaultBundleTemplateServiceNestedIntegrationTest()
public void shouldGetLeafComponents()
public void shouldGetLeafsByNonLeafComponent()
public void shouldReturnLeafsByRoot()
public void leafListShouldBeConsistentRelativeToSourceComponent()
public void shouldPreventLeafOrder()
public void shouldReturnAllRootTemplates()
public void shouldReturnAllRootTemplatesIncludingArchived()
public void shouldKnowWhetherBundleIsUsedByCart()
throws CommerceCartModificationException
CommerceCartModificationExceptionpublic void shouldKnowWhetherBundleIsUsedByOrder()
throws CommerceCartModificationException
CommerceCartModificationExceptionpublic void shouldReturnPositionInPackage()
public void shouldNotReturnPositionInParentForNonLeafComponents()
public void shouldReturnNextComponentOfTheSameGroup()
public void shouldReturnNextComponentAcrossGroups()
public void shouldReturnNullForNextOfTheLast()
public void shouldRejectNextOfNull()
public void shouldReturnPrecedingComponentOfTheSameGroup()
public void shouldReturnPrecedingComponentAcrossGroups()
public void shouldReturnNullForPrevOfTheFirst()
public void shouldRejectPrevOfNull()
public void relativeShouldWorkAsNext()
public void relativeShouldWorkAsPrev()
public void relativeShouldBeAbleToJumpForward()
public void relativeShouldBeAbleToJumpBackward()
public void relativeShouldHandleUnderflow()
public void relativeShouldHandleOverflow()
public void shouldGetComponentsByProduct()
public void shouldReturnEmptyComponentListForStandaloneProduct()
public void gettingComponentsByProductShouldHandleNonPersistentProduct()
public void gettingComponentsByProductShouldHandleNullArgument()
public void shouldGetRootBundleTemplates()
public void shouldGetOnlyApprovedBundleTemplates()
public void shouldGetTemplatesOnlyFromGivenCatalog()
public void shouldHandleNullCatalogWhileGettingTemplates()
public void shouldHandleNonPersistentArgumentWhileGettingTemplates()
public void shouldCorrectlyDetermineAutopickComponents()
protected BundleTemplateStatusModel getStatus(String id)
protected CatalogVersionModel getCatalog()
protected ProductModel getProduct(String code)
protected List<BundleTemplateModel> getHierarchy(BundleTemplateModel node)
Copyright © 2017 SAP SE. All Rights Reserved.