Class UnlocalizedFeatureTest
- java.lang.Object
-
- de.hybris.platform.classification.features.UnlocalizedFeatureTest
-
@UnitTest public class UnlocalizedFeatureTest extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description UnlocalizedFeatureTest()
-
Method Summary
-
-
-
Method Detail
-
setUp
public void setUp() throws java.lang.Exception- Throws:
java.lang.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).
-
-