Class CPSConfigurationParentReferenceStrategyImplTest
- java.lang.Object
-
- de.hybris.platform.sap.productconfig.runtime.cps.strategy.impl.CPSConfigurationParentReferenceStrategyImplTest
-
@UnitTest public class CPSConfigurationParentReferenceStrategyImplTest extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected CPSCharacteristiccharacteristicprotected CPSCharacteristiccharacteristic2protected CPSConfigurationconfigurationprotected static java.lang.StringCSTIC_IDprotected static java.lang.StringCSTIC_ID2protected CPSCharacteristicGroupgroupprotected static java.lang.StringGROUP_IDprotected static java.lang.StringITEM_IDprotected static java.lang.StringLANGprotected CPSItemrootItemprotected static java.lang.StringSUB_ITEM_CSTICprotected static java.lang.StringSUB_ITEM_CSTIC_VALUE
-
Constructor Summary
Constructors Constructor Description CPSConfigurationParentReferenceStrategyImplTest()
-
Method Summary
-
-
-
Field Detail
-
SUB_ITEM_CSTIC_VALUE
protected static final java.lang.String SUB_ITEM_CSTIC_VALUE
- See Also:
- Constant Field Values
-
SUB_ITEM_CSTIC
protected static final java.lang.String SUB_ITEM_CSTIC
- See Also:
- Constant Field Values
-
LANG
protected static final java.lang.String LANG
-
ITEM_ID
protected static final java.lang.String ITEM_ID
- See Also:
- Constant Field Values
-
GROUP_ID
protected static final java.lang.String GROUP_ID
- See Also:
- Constant Field Values
-
CSTIC_ID
protected static final java.lang.String CSTIC_ID
- See Also:
- Constant Field Values
-
CSTIC_ID2
protected static final java.lang.String CSTIC_ID2
- See Also:
- Constant Field Values
-
configuration
protected final CPSConfiguration configuration
-
rootItem
protected final CPSItem rootItem
-
group
protected final CPSCharacteristicGroup group
-
characteristic
protected final CPSCharacteristic characteristic
-
characteristic2
protected final CPSCharacteristic characteristic2
-
-
Method Detail
-
setup
public void setup()
-
createCPSItem
protected CPSItem createCPSItem(java.lang.String itemId)
-
createCPSCharacteristic
protected CPSCharacteristic createCPSCharacteristic()
-
createListOfPossibleValues
protected java.util.List<CPSPossibleValue> createListOfPossibleValues()
-
createListOfCPSValues
protected java.util.List<CPSValue> createListOfCPSValues(CPSCharacteristic characteristic)
-
createCPSValue
protected CPSValue createCPSValue(CPSCharacteristic characteristic, java.lang.String valueName)
-
addRuntimeCsticGroup
protected void addRuntimeCsticGroup(CPSItem item, CPSCharacteristicGroup characteristicGroup)
-
isRuntimeCsticGroupPresent
protected boolean isRuntimeCsticGroupPresent(CPSItem item, java.lang.String id)
-
isRuntimeCsticPresent
protected boolean isRuntimeCsticPresent(CPSItem item, java.lang.String id)
-
addRuntimeCstic
protected void addRuntimeCstic(CPSItem item, CPSCharacteristic characteristic)
-
testAddParentReferences
public void testAddParentReferences()
-
testAddParentReferencesForSubItems
public void testAddParentReferencesForSubItems()
-
testAddParentReferencesForCharacteristics
public void testAddParentReferencesForCharacteristics()
-
testAddParentReferencesForCharacteristicGroups
public void testAddParentReferencesForCharacteristicGroups()
-
testAddParentReferencesForCharacteristicValues
public void testAddParentReferencesForCharacteristicValues()
-
testAddParentReferences_FullHierarchy
public void testAddParentReferences_FullHierarchy()
-
-