Class LocalizedFeatureTest
java.lang.Object
de.hybris.platform.classification.features.LocalizedFeatureTest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetUp()voidvoidvoidvoidTest method forLocalizedFeature.setValues(java.util.List).voidTest method forLocalizedFeature(ClassAttributeAssignmentModel, Map, Locale).voidTest method forLocalizedFeature(ClassAttributeAssignmentModel, Map, Locale).voidTest method forLocalizedFeature.removeAllValues().voidvoidTest method forLocalizedFeature.getValues().voidTest method forLocalizedFeature.getValues().voidTest method forLocalizedFeature.getValue().voidTest method forLocalizedFeature.getValuesForAllLocales().voidTest method forLocalizedFeature.getValue().voidTest method forLocalizedFeature.getValue().voidTest method forLocalizedFeature.getValues().voidTest method forLocalizedFeature.setValues(java.util.List).voidvoid
-
Constructor Details
-
LocalizedFeatureTest
public LocalizedFeatureTest()
-
-
Method Details
-
setUp
public void setUp() -
shouldReturnEmptyListWhenThereIsEmptyListOfValuesForCurrentLocale
public void shouldReturnEmptyListWhenThereIsEmptyListOfValuesForCurrentLocale()Test method forLocalizedFeature.getValues(). -
shouldReturnEmptyListWhenThereIsNullListOfValuesForCurrentLocale
public void shouldReturnEmptyListWhenThereIsNullListOfValuesForCurrentLocale()Test method forLocalizedFeature.getValues(). -
shouldReturnUnmodifableListOfValuesWhenThereIsListOfValuesForCurrentLocale
public void shouldReturnUnmodifableListOfValuesWhenThereIsListOfValuesForCurrentLocale()Test method forLocalizedFeature.getValues(). -
shouldReturnNullValueWhenThereIsEmptyListOfValuesForCurrentLocale
public void shouldReturnNullValueWhenThereIsEmptyListOfValuesForCurrentLocale()Test method forLocalizedFeature.getValue(). -
shouldReturnNullValueWhenThereIsNullListOfValuesForCurrentLocale
public void shouldReturnNullValueWhenThereIsNullListOfValuesForCurrentLocale()Test method forLocalizedFeature.getValue(). -
shouldReturnFirstValueForCurrentLocale
public void shouldReturnFirstValueForCurrentLocale()Test method forLocalizedFeature.getValue(). -
shouldAddValueForCurrentLocaleWhenThereIsNoValueForCurrentLocale
public void shouldAddValueForCurrentLocaleWhenThereIsNoValueForCurrentLocale() -
shouldAddValueForCurrentLocaleOnIndex0WhenThereIsNoValueForCurrentLocale
public void shouldAddValueForCurrentLocaleOnIndex0WhenThereIsNoValueForCurrentLocale() -
shouldAddValueForCurrentLocaleOnIndex0WhenThereIsValueForCurrentLocale
public void shouldAddValueForCurrentLocaleOnIndex0WhenThereIsValueForCurrentLocale() -
shouldThrowIllegalArgumentExceptionWhenSettingValueOnIndexGreaterThanValuesSize
public void shouldThrowIllegalArgumentExceptionWhenSettingValueOnIndexGreaterThanValuesSize() -
shouldThrowIllegalArgumentExceptionWhenSettingValueOnIndexLowerThanZero
public void shouldThrowIllegalArgumentExceptionWhenSettingValueOnIndexLowerThanZero() -
shouldRemoveLocalizedValueForCurrentLocale
public void shouldRemoveLocalizedValueForCurrentLocale() -
shouldRemoveAllValuesForCurrentLocale
public void shouldRemoveAllValuesForCurrentLocale()Test method forLocalizedFeature.removeAllValues(). -
shouldSetListOfValuesForCurrentLocaleIfThereIsNoValuesForCurrentLocale
public void shouldSetListOfValuesForCurrentLocaleIfThereIsNoValuesForCurrentLocale()Test method forLocalizedFeature.setValues(java.util.List). -
shouldClearAndSetListOfValuesForCurrentLocaleIfThereIsListOfValuesForCurrentLocale
public void shouldClearAndSetListOfValuesForCurrentLocaleIfThereIsListOfValuesForCurrentLocale()Test method forLocalizedFeature.setValues(java.util.List). -
shouldCreateLocalizeFeatureWithEmptyValuesMapWhenValuesIsNull
public void shouldCreateLocalizeFeatureWithEmptyValuesMapWhenValuesIsNull()Test method forLocalizedFeature(ClassAttributeAssignmentModel, Map, Locale). -
shouldCreateLocalizeFeatureWithCopyOfValuesMapWhenValuesIsNotNull
public void shouldCreateLocalizeFeatureWithCopyOfValuesMapWhenValuesIsNotNull()Test method forLocalizedFeature(ClassAttributeAssignmentModel, Map, Locale). -
shouldReturnFullMapOfValuesForAllLocales
public void shouldReturnFullMapOfValuesForAllLocales()Test method forLocalizedFeature.getValuesForAllLocales().
-