Class DefaultCMSItemConverterTest
- java.lang.Object
-
- de.hybris.platform.cmsfacades.cmsitems.converter.DefaultCMSItemConverterTest
-
@UnitTest public class DefaultCMSItemConverterTest extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description DefaultCMSItemConverterTest()
-
Method Summary
-
-
-
Method Detail
-
setUp
public void setUp()
-
shouldFailConvertWhenItemModelIsNull
public void shouldFailConvertWhenItemModelIsNull()
-
shouldFailConvertWhenMapIsNull
public void shouldFailConvertWhenMapIsNull() throws java.lang.InstantiationException, java.lang.IllegalAccessException- Throws:
java.lang.InstantiationExceptionjava.lang.IllegalAccessException
-
shouldFailConvertWhenMapHasNoType
public void shouldFailConvertWhenMapHasNoType() throws java.lang.InstantiationException, java.lang.IllegalAccessException- Throws:
java.lang.InstantiationExceptionjava.lang.IllegalAccessException
-
shouldFindModificationForSimpleAttributeType
public void shouldFindModificationForSimpleAttributeType()
-
shouldFindModificationForComplexAttributeType
public void shouldFindModificationForComplexAttributeType()
-
shouldNotFindModificationForUidAttribute
public void shouldNotFindModificationForUidAttribute()
-
shouldNotInitializeCloneComponentAttributeContextForNonComponentCloningFlow
public void shouldNotInitializeCloneComponentAttributeContextForNonComponentCloningFlow()
-
shouldCloneComponentFromRepresentation
public void shouldCloneComponentFromRepresentation() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
shouldNotCloneComponentFromRepresentationWithSessionAlreadyInitialized
public void shouldNotCloneComponentFromRepresentationWithSessionAlreadyInitialized() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
shouldGetItemModelFromCloneComponentRepresentation
public void shouldGetItemModelFromCloneComponentRepresentation()
-
shouldCreateItemModelFromRepresentation
public void shouldCreateItemModelFromRepresentation()
-
isCloneComponentFlowShouldReturnFalseForNonCloneableComponents
public void isCloneComponentFlowShouldReturnFalseForNonCloneableComponents()
-
isCloneComponentFlowShouldReturnTrueForCloneableComponents
public void isCloneComponentFlowShouldReturnTrueForCloneableComponents()
-
isDynamicAttributeShouldReturnTrueForDynamicAttributes
public void isDynamicAttributeShouldReturnTrueForDynamicAttributes()
-
isDynamicAttributeShouldReturnFalseForNonDynamicAttributes
public void isDynamicAttributeShouldReturnFalseForNonDynamicAttributes()
-
isDynamicAttributeShouldReturnFalseForRelationAttributes
public void isDynamicAttributeShouldReturnFalseForRelationAttributes()
-
convertAndValidateShouldReturnAPopulatedItemModel
public void convertAndValidateShouldReturnAPopulatedItemModel()
-
convertAndValidateShouldNotPopulateNonWritableAttributes
public void convertAndValidateShouldNotPopulateNonWritableAttributes()
-
convertAndValidateShouldSkipAttributesWithNoReadPermissions
public void convertAndValidateShouldSkipAttributesWithNoReadPermissions()
-
convertAndValidateShouldSkipAttributesWithNoWritePermissions
public void convertAndValidateShouldSkipAttributesWithNoWritePermissions()
-
convertAndValidateShouldSkipComposedTypeAttributesWithNoChangePermissionForContainingType
public void convertAndValidateShouldSkipComposedTypeAttributesWithNoChangePermissionForContainingType()
-
convertAndValidateShouldNotPopulateDynamicAttributes
public void convertAndValidateShouldNotPopulateDynamicAttributes()
-
convertAndValidateShouldCatchAttributeValidationErrorsAndCollectThem
public void convertAndValidateShouldCatchAttributeValidationErrorsAndCollectThem()
-
buildTestDataMap
protected java.util.Map<java.lang.String,java.lang.Object> buildTestDataMap()
-
setUpAttributeDescriptorWithDefaultValues
protected void setUpAttributeDescriptorWithDefaultValues(AttributeDescriptorModel attr, java.lang.String qualifier)
-
setUpDataToModelTest
protected void setUpDataToModelTest(java.util.Map<java.lang.String,java.lang.Object> testMap)
-
makeAttributeNonWritable
protected void makeAttributeNonWritable(AttributeDescriptorModel attr)
-
denyChangePermissionToPrincipal
protected void denyChangePermissionToPrincipal(java.lang.String typeCode, java.lang.String qualifier)
-
denyReadPermissionToPrincipal
protected void denyReadPermissionToPrincipal(java.lang.String typeCode, java.lang.String qualifier)
-
makeAttributeDynamic
protected void makeAttributeDynamic(AttributeDescriptorModel attr)
-
makeAttributeThrowExceptionWhenValidated
protected <T extends java.lang.RuntimeException> void makeAttributeThrowExceptionWhenValidated(AttributeDescriptorModel attr, java.lang.Class<T> expectedExceptionClass)
-
assertValuesFromMapWereSetInModel
protected void assertValuesFromMapWereSetInModel(java.util.Map<java.lang.String,java.lang.Object> originalMap, java.lang.String... expectedValues)
-
assertCloneProviderWasHandled
protected void assertCloneProviderWasHandled(ItemModel itemModel)
-
-