Class AbstractComponentTypeFacadeIntegrationTest
java.lang.Object
de.hybris.platform.cmsfacades.types.AbstractComponentTypeFacadeIntegrationTest
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DefaultComponentTypeFacadeprotected final Map<String,ComponentTypeData> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddTruthyType(String typeCode, String category, List<ComponentTypeAttributeData> attributes) protected voidassertAvailableComponentTypeData(ComponentTypeData componentTypeData) protected voidassertPage(ComponentTypeData pageType, String typeCode) protected voidassertPageTypeAttributes(ComponentTypeData pageType) Compares the page type attributes with the expected list of attributes defined in thetypeBluePrint.protected StringgetI18nKey(String typeCode) protected ComponentTypeAttributeDatanewAttribute(String qualifier, String cmsStructureType) protected ComponentTypeDatanewComponentTypeData(String typeCode, String category, List<ComponentTypeAttributeData> attributes) voidsetComponentTypeFacade(DefaultComponentTypeFacade componentTypeFacade) voidsetup()voidvoidvoidvoid
-
Field Details
-
componentTypeFacade
-
typeBluePrint
-
-
Constructor Details
-
AbstractComponentTypeFacadeIntegrationTest
public AbstractComponentTypeFacadeIntegrationTest()
-
-
Method Details
-
setup
public void setup() -
addTruthyType
protected void addTruthyType(String typeCode, String category, List<ComponentTypeAttributeData> attributes) -
newComponentTypeData
protected ComponentTypeData newComponentTypeData(String typeCode, String category, List<ComponentTypeAttributeData> attributes) -
newAttribute
-
shouldGetCategoryPageComponentType_FromAllTypes
public void shouldGetCategoryPageComponentType_FromAllTypes() -
shouldGetCategoryPageComponentType_FromSingleType
public void shouldGetCategoryPageComponentType_FromSingleType() throws ComponentTypeNotFoundException- Throws:
ComponentTypeNotFoundException
-
shouldGetContentPageComponentType_FromSingleType
public void shouldGetContentPageComponentType_FromSingleType() throws ComponentTypeNotFoundException- Throws:
ComponentTypeNotFoundException
-
testAllComponentTypeStructuresArePresent
- Throws:
ComponentTypeNotFoundException
-
assertAvailableComponentTypeData
-
assertPage
-
getI18nKey
-
assertPageTypeAttributes
Compares the page type attributes with the expected list of attributes defined in thetypeBluePrint. Assertion passes when the content and sizes for the page type attributes and the expected list of attributes matches.- Parameters:
pageType- the page type containing the attributes to be validated
-
getComponentTypeAttributeQualifiers
protected List<String> getComponentTypeAttributeQualifiers(List<ComponentTypeAttributeData> attributes) -
getComponentTypeFacade
-
setComponentTypeFacade
-