Class LocalizedFeatureTest
- java.lang.Object
-
- de.hybris.platform.classification.features.LocalizedFeatureTest
-
@UnitTest public class LocalizedFeatureTest extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description LocalizedFeatureTest()
-
Method Summary
-
-
-
Method Detail
-
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().
-
-