Class UnlocalizedFeatureTest
java.lang.Object
de.hybris.platform.classification.features.UnlocalizedFeatureTest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetUp()voidvoidTest method forUnlocalizedFeature(java.lang.String, java.util.List).voidTest method forUnlocalizedFeature(java.lang.String, java.util.List).voidTest method forUnlocalizedFeature.removeAllValues().voidvoidvoidvoidTest method forUnlocalizedFeature.getValues().voidTest method forUnlocalizedFeature.getValue().voidvoidTest method forUnlocalizedFeature.getValue().voidTest method forUnlocalizedFeature.getValues().voidTest method forUnlocalizedFeature.setValues(java.util.List).voidvoidvoidvoidvoidvoidvoidTest method forUnlocalizedFeature.setValues(java.util.List).voidvoid
-
Constructor Details
-
UnlocalizedFeatureTest
public UnlocalizedFeatureTest()
-
-
Method Details
-
setUp
- Throws:
Exception
-
shouldReturnClassificationAttributeNameAsNameOfTypedFeature
public void shouldReturnClassificationAttributeNameAsNameOfTypedFeature() -
shouldReturnComputedCodeFromAssignmentAsCodeOfTypedFeature
public void shouldReturnComputedCodeFromAssignmentAsCodeOfTypedFeature() -
shouldReturnFixedCodeOfUntypedFeature
public void shouldReturnFixedCodeOfUntypedFeature() -
shouldThrowIllegalArgumentExceptionWhenInstantiatingTypedFeatureWithoutAssignment
public void shouldThrowIllegalArgumentExceptionWhenInstantiatingTypedFeatureWithoutAssignment() -
shouldThrowIllegalArgumentExceptionWhenInstantiatingUntypedFeatureWithoutCode
public void shouldThrowIllegalArgumentExceptionWhenInstantiatingUntypedFeatureWithoutCode() -
shouldCreateFeatureWithEmptyListOfValuesWhenPassedListOfValuesIsNull
public void shouldCreateFeatureWithEmptyListOfValuesWhenPassedListOfValuesIsNull()Test method forUnlocalizedFeature(java.lang.String, java.util.List). -
shouldCreateFeature
public void shouldCreateFeature()Test method forUnlocalizedFeature(java.lang.String, java.util.List). -
shouldReturnUnmodifableListOfValues
public void shouldReturnUnmodifableListOfValues()Test method forUnlocalizedFeature.getValues(). -
shouldReturnEmptyUnmodifableListOfValuesWhenThereIsNoValues
public void shouldReturnEmptyUnmodifableListOfValuesWhenThereIsNoValues()Test method forUnlocalizedFeature.getValues(). -
shouldReturnNullValueWhenThereIsEmptyListOfValues
public void shouldReturnNullValueWhenThereIsEmptyListOfValues()Test method forUnlocalizedFeature.getValue(). -
shouldReturnFirstValueWhenThereIsListOfValues
public void shouldReturnFirstValueWhenThereIsListOfValues()Test method forUnlocalizedFeature.getValue(). -
shouldAddValueToListOfValues
public void shouldAddValueToListOfValues() -
shouldThrowIllegalArgumentExceptionWhenValueIsNull
public void shouldThrowIllegalArgumentExceptionWhenValueIsNull() -
shouldThrowIllegalArgumentExceptionWhenIndexIsGreaterThanCurrentValuesSize
public void shouldThrowIllegalArgumentExceptionWhenIndexIsGreaterThanCurrentValuesSize() -
shouldThrowIllegalArgumentExceptionWhenIndexIsLowerThanZero
public void shouldThrowIllegalArgumentExceptionWhenIndexIsLowerThanZero() -
shouldSetNewValueOnIndexOfTwo
public void shouldSetNewValueOnIndexOfTwo() -
shouldSetNewValueOnIndexOfZero
public void shouldSetNewValueOnIndexOfZero() -
shouldRemoveValueFromListOfValues
public void shouldRemoveValueFromListOfValues() -
shouldThrowIllegalArgumentExceptionWhenValueToRemoveIsNull
public void shouldThrowIllegalArgumentExceptionWhenValueToRemoveIsNull() -
shouldRemoveAllValuesFromCurrentListOfValues
public void shouldRemoveAllValuesFromCurrentListOfValues()Test method forUnlocalizedFeature.removeAllValues(). -
shouldSetNewListOfValuesReplacingOldOneCompletely
public void shouldSetNewListOfValuesReplacingOldOneCompletely()Test method forUnlocalizedFeature.setValues(java.util.List). -
shouldThrowIllegalArgumentExceptionWhenListOfValuesIsNull
public void shouldThrowIllegalArgumentExceptionWhenListOfValuesIsNull()Test method forUnlocalizedFeature.setValues(java.util.List).
-