Class BundleCartValidatorTest
- java.lang.Object
-
- de.hybris.platform.configurablebundleservices.order.impl.BundleCartValidatorTest
-
@UnitTest public class BundleCartValidatorTest extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected CartModelcartprotected BundleTemplateModelcomponent1protected BundleTemplateModelcomponent2protected EntryGroupgroupErrprotected EntryGroupgroupOkprotected EntryGrouprootGroup
-
Constructor Summary
Constructors Constructor Description BundleCartValidatorTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrequiredShouldInvalidateIfEntryAdded()voidrequiredShouldNotInvalidateEntryNotAdded()voidsetup()voidshouldCheckSelectionCriteria()voidshouldCheckTheCartIsNotNull()voidshouldCheckTheListIsNotNull()voidshouldIgnoreNonBundleGroups()voidshouldReturnFalseIfErroneousFlagsHaveNotChanged()voidshouldReturnTrueIfErroneousAnyFlagHasChanged()voidshouldWorkWithEmptyGroupList()
-
-
-
Field Detail
-
cart
protected CartModel cart
-
rootGroup
protected EntryGroup rootGroup
-
groupOk
protected EntryGroup groupOk
-
groupErr
protected EntryGroup groupErr
-
component1
protected BundleTemplateModel component1
-
component2
protected BundleTemplateModel component2
-
-
Method Detail
-
setup
public void setup()
-
shouldCheckTheListIsNotNull
public void shouldCheckTheListIsNotNull()
-
shouldCheckTheCartIsNotNull
public void shouldCheckTheCartIsNotNull()
-
shouldWorkWithEmptyGroupList
public void shouldWorkWithEmptyGroupList()
-
shouldCheckSelectionCriteria
public void shouldCheckSelectionCriteria()
-
requiredShouldInvalidateIfEntryAdded
public void requiredShouldInvalidateIfEntryAdded()
-
requiredShouldNotInvalidateEntryNotAdded
public void requiredShouldNotInvalidateEntryNotAdded()
-
shouldIgnoreNonBundleGroups
public void shouldIgnoreNonBundleGroups()
-
shouldReturnTrueIfErroneousAnyFlagHasChanged
public void shouldReturnTrueIfErroneousAnyFlagHasChanged()
-
shouldReturnFalseIfErroneousFlagsHaveNotChanged
public void shouldReturnFalseIfErroneousFlagsHaveNotChanged()
-
-