Class DefaultBundleTemplateServiceNestedIntegrationTest
- java.lang.Object
-
- de.hybris.platform.testframework.HybrisJUnit4Test
-
- de.hybris.platform.servicelayer.ServicelayerBaseTest
-
- de.hybris.platform.servicelayer.ServicelayerTest
-
- de.hybris.platform.configurablebundleservices.bundle.impl.DefaultBundleTemplateServiceNestedIntegrationTest
-
- All Implemented Interfaces:
JaloSessionHolder
@IntegrationTest public class DefaultBundleTemplateServiceNestedIntegrationTest extends ServicelayerTest
-
-
Field Summary
Fields Modifier and Type Field Description protected BundleTemplateService
bundleTemplateService
protected CartModel
cart
static java.lang.String
CATALOG_ID
static java.lang.String
FOURTH_PACKAGE
static java.lang.String
NESTED_COMPONENT
static java.lang.String
OPTIONAL_COMPONENT
static java.lang.String
PARENT_PACKAGE
static java.lang.String
PREMIUM_COMPONENT
static java.lang.String
PREMIUM01
static java.lang.String
PRODUCT01
static java.lang.String
PRODUCT02
static java.lang.String
REGULAR_COMPONENT
static java.lang.String
ROOT_BUNDLE_TEMPLATE
static java.lang.String
ROOT_COMPONENT
static java.lang.String
SECOND_PACKAGE
static java.lang.String
STAGED_PACKAGE
static java.lang.String
STANDALONE01
static java.lang.String
THIRD_PACKAGE
org.junit.rules.ExpectedException
thrown
protected UnitModel
unitModel
-
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 DefaultBundleTemplateServiceNestedIntegrationTest()
-
Method Summary
-
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
-
-
-
-
Field Detail
-
PARENT_PACKAGE
public static final java.lang.String PARENT_PACKAGE
- See Also:
- Constant Field Values
-
SECOND_PACKAGE
public static final java.lang.String SECOND_PACKAGE
- See Also:
- Constant Field Values
-
THIRD_PACKAGE
public static final java.lang.String THIRD_PACKAGE
- See Also:
- Constant Field Values
-
FOURTH_PACKAGE
public static final java.lang.String FOURTH_PACKAGE
- See Also:
- Constant Field Values
-
STAGED_PACKAGE
public static final java.lang.String STAGED_PACKAGE
- See Also:
- Constant Field Values
-
REGULAR_COMPONENT
public static final java.lang.String REGULAR_COMPONENT
- See Also:
- Constant Field Values
-
OPTIONAL_COMPONENT
public static final java.lang.String OPTIONAL_COMPONENT
- See Also:
- Constant Field Values
-
PREMIUM_COMPONENT
public static final java.lang.String PREMIUM_COMPONENT
- See Also:
- Constant Field Values
-
ROOT_COMPONENT
public static final java.lang.String ROOT_COMPONENT
- See Also:
- Constant Field Values
-
NESTED_COMPONENT
public static final java.lang.String NESTED_COMPONENT
- See Also:
- Constant Field Values
-
ROOT_BUNDLE_TEMPLATE
public static final java.lang.String ROOT_BUNDLE_TEMPLATE
- See Also:
- Constant Field Values
-
PRODUCT01
public static final java.lang.String PRODUCT01
- See Also:
- Constant Field Values
-
PREMIUM01
public static final java.lang.String PREMIUM01
- See Also:
- Constant Field Values
-
PRODUCT02
public static final java.lang.String PRODUCT02
- See Also:
- Constant Field Values
-
STANDALONE01
public static final java.lang.String STANDALONE01
- See Also:
- Constant Field Values
-
CATALOG_ID
public static final java.lang.String CATALOG_ID
- See Also:
- Constant Field Values
-
thrown
public org.junit.rules.ExpectedException thrown
-
bundleTemplateService
protected BundleTemplateService bundleTemplateService
-
unitModel
protected UnitModel unitModel
-
cart
protected CartModel cart
-
-
Method Detail
-
setUp
public void setUp() throws java.lang.Exception
- Throws:
java.lang.Exception
-
shouldGetLeafComponents
public void shouldGetLeafComponents()
-
shouldGetLeafsByNonLeafComponent
public void shouldGetLeafsByNonLeafComponent()
-
shouldReturnLeafsByRoot
public void shouldReturnLeafsByRoot()
-
leafListShouldBeConsistentRelativeToSourceComponent
public void leafListShouldBeConsistentRelativeToSourceComponent()
-
shouldPreventLeafOrder
public void shouldPreventLeafOrder()
-
shouldReturnAllRootTemplates
public void shouldReturnAllRootTemplates()
-
shouldReturnAllRootTemplatesIncludingArchived
public void shouldReturnAllRootTemplatesIncludingArchived()
-
shouldReturnPositionInPackage
public void shouldReturnPositionInPackage()
-
shouldNotReturnPositionInParentForNonLeafComponents
public void shouldNotReturnPositionInParentForNonLeafComponents()
-
shouldReturnNextComponentOfTheSameGroup
public void shouldReturnNextComponentOfTheSameGroup()
-
shouldReturnNextComponentAcrossGroups
public void shouldReturnNextComponentAcrossGroups()
-
shouldReturnNullForNextOfTheLast
public void shouldReturnNullForNextOfTheLast()
-
shouldRejectNextOfNull
public void shouldRejectNextOfNull()
-
shouldReturnPrecedingComponentOfTheSameGroup
public void shouldReturnPrecedingComponentOfTheSameGroup()
-
shouldReturnPrecedingComponentAcrossGroups
public void shouldReturnPrecedingComponentAcrossGroups()
-
shouldReturnNullForPrevOfTheFirst
public void shouldReturnNullForPrevOfTheFirst()
-
shouldRejectPrevOfNull
public void shouldRejectPrevOfNull()
-
relativeShouldWorkAsNext
public void relativeShouldWorkAsNext()
-
relativeShouldWorkAsPrev
public void relativeShouldWorkAsPrev()
-
relativeShouldBeAbleToJumpForward
public void relativeShouldBeAbleToJumpForward()
-
relativeShouldBeAbleToJumpBackward
public void relativeShouldBeAbleToJumpBackward()
-
relativeShouldHandleUnderflow
public void relativeShouldHandleUnderflow()
-
relativeShouldHandleOverflow
public void relativeShouldHandleOverflow()
-
shouldGetComponentsByProduct
public void shouldGetComponentsByProduct()
-
shouldReturnEmptyComponentListForStandaloneProduct
public void shouldReturnEmptyComponentListForStandaloneProduct()
-
gettingComponentsByProductShouldHandleNonPersistentProduct
public void gettingComponentsByProductShouldHandleNonPersistentProduct()
-
gettingComponentsByProductShouldHandleNullArgument
public void gettingComponentsByProductShouldHandleNullArgument()
-
shouldGetRootBundleTemplates
public void shouldGetRootBundleTemplates()
-
shouldGetOnlyApprovedBundleTemplates
public void shouldGetOnlyApprovedBundleTemplates()
-
shouldGetTemplatesOnlyFromGivenCatalog
public void shouldGetTemplatesOnlyFromGivenCatalog()
-
shouldHandleNullCatalogWhileGettingTemplates
public void shouldHandleNullCatalogWhileGettingTemplates()
-
shouldHandleNonPersistentArgumentWhileGettingTemplates
public void shouldHandleNonPersistentArgumentWhileGettingTemplates()
-
getStatus
protected BundleTemplateStatusModel getStatus(java.lang.String id)
-
getCatalog
protected CatalogVersionModel getCatalog()
-
getProduct
protected ProductModel getProduct(java.lang.String code)
-
getHierarchy
protected java.util.List<BundleTemplateModel> getHierarchy(BundleTemplateModel node)
-
-