Class AbstractComponentTypeFacadeIntegrationTest
- java.lang.Object
-
- de.hybris.platform.cmsfacades.types.AbstractComponentTypeFacadeIntegrationTest
-
public class AbstractComponentTypeFacadeIntegrationTest extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected DefaultComponentTypeFacadecomponentTypeFacadeprotected java.util.Map<java.lang.String,ComponentTypeData>typeBluePrint
-
Constructor Summary
Constructors Constructor Description AbstractComponentTypeFacadeIntegrationTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddTruthyType(java.lang.String typeCode, java.lang.String category, java.util.List<ComponentTypeAttributeData> attributes)protected voidassertAvailableComponentTypeData(ComponentTypeData componentTypeData)protected voidassertPage(ComponentTypeData pageType, java.lang.String typeCode)protected voidassertPageTypeAttributes(ComponentTypeData pageType)Compares the page type attributes with the expected list of attributes defined in thetypeBluePrint.protected java.util.List<java.lang.String>getComponentTypeAttributeQualifiers(java.util.List<ComponentTypeAttributeData> attributes)DefaultComponentTypeFacadegetComponentTypeFacade()protected java.lang.StringgetI18nKey(java.lang.String typeCode)protected ComponentTypeAttributeDatanewAttribute(java.lang.String qualifier, java.lang.String cmsStructureType)protected ComponentTypeDatanewComponentTypeData(java.lang.String typeCode, java.lang.String category, java.util.List<ComponentTypeAttributeData> attributes)voidsetComponentTypeFacade(DefaultComponentTypeFacade componentTypeFacade)voidsetup()voidshouldGetCategoryPageComponentType_FromAllTypes()voidshouldGetCategoryPageComponentType_FromSingleType()voidshouldGetContentPageComponentType_FromSingleType()voidtestAllComponentTypeStructuresArePresent()
-
-
-
Field Detail
-
componentTypeFacade
protected DefaultComponentTypeFacade componentTypeFacade
-
typeBluePrint
protected final java.util.Map<java.lang.String,ComponentTypeData> typeBluePrint
-
-
Method Detail
-
setup
public void setup()
-
addTruthyType
protected void addTruthyType(java.lang.String typeCode, java.lang.String category, java.util.List<ComponentTypeAttributeData> attributes)
-
newComponentTypeData
protected ComponentTypeData newComponentTypeData(java.lang.String typeCode, java.lang.String category, java.util.List<ComponentTypeAttributeData> attributes)
-
newAttribute
protected ComponentTypeAttributeData newAttribute(java.lang.String qualifier, java.lang.String cmsStructureType)
-
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
public void testAllComponentTypeStructuresArePresent() throws ComponentTypeNotFoundException- Throws:
ComponentTypeNotFoundException
-
assertAvailableComponentTypeData
protected void assertAvailableComponentTypeData(ComponentTypeData componentTypeData)
-
assertPage
protected void assertPage(ComponentTypeData pageType, java.lang.String typeCode)
-
getI18nKey
protected java.lang.String getI18nKey(java.lang.String typeCode)
-
assertPageTypeAttributes
protected void assertPageTypeAttributes(ComponentTypeData pageType)
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 java.util.List<java.lang.String> getComponentTypeAttributeQualifiers(java.util.List<ComponentTypeAttributeData> attributes)
-
getComponentTypeFacade
public DefaultComponentTypeFacade getComponentTypeFacade()
-
setComponentTypeFacade
public void setComponentTypeFacade(DefaultComponentTypeFacade componentTypeFacade)
-
-