Class ExcelCategoryFieldValidatorTest
- java.lang.Object
-
- com.hybris.backoffice.excel.validators.ExcelCategoryFieldValidatorTest
-
public class ExcelCategoryFieldValidatorTest extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
FIRST_CATALOG
static java.lang.String
FIRST_CATEGORY
static java.lang.String
FIRST_VERSION
static java.lang.String
NOT_BLANK
static java.lang.String
NOT_EXISTING_CATEGORY
static java.lang.String
SECOND_CATEGORY
-
Constructor Summary
Constructors Constructor Description ExcelCategoryFieldValidatorTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setup()
void
shouldHandleCategoryWhenAttributeIsCategoryProductRelation()
void
shouldNotHandleCategoryWhenAttributeIsNotCategoryProductRelation()
void
shouldNotHandleCategoryWhenAttributeIsNotRelationDescriptor()
void
shouldNotHandleCategoryWhenCellIsEmpty()
void
shouldNotReturnErrorWhenCategoryExists()
void
shouldReturnErrorWhenCategoryDoesNotExist()
-
-
-
Field Detail
-
FIRST_CATALOG
public static final java.lang.String FIRST_CATALOG
- See Also:
- Constant Field Values
-
FIRST_VERSION
public static final java.lang.String FIRST_VERSION
- See Also:
- Constant Field Values
-
FIRST_CATEGORY
public static final java.lang.String FIRST_CATEGORY
- See Also:
- Constant Field Values
-
SECOND_CATEGORY
public static final java.lang.String SECOND_CATEGORY
- See Also:
- Constant Field Values
-
NOT_EXISTING_CATEGORY
public static final java.lang.String NOT_EXISTING_CATEGORY
- See Also:
- Constant Field Values
-
NOT_BLANK
public static final java.lang.String NOT_BLANK
- See Also:
- Constant Field Values
-
-
Method Detail
-
setup
public void setup()
-
shouldHandleCategoryWhenAttributeIsCategoryProductRelation
public void shouldHandleCategoryWhenAttributeIsCategoryProductRelation()
-
shouldNotHandleCategoryWhenCellIsEmpty
public void shouldNotHandleCategoryWhenCellIsEmpty()
-
shouldNotHandleCategoryWhenAttributeIsNotCategoryProductRelation
public void shouldNotHandleCategoryWhenAttributeIsNotCategoryProductRelation()
-
shouldNotHandleCategoryWhenAttributeIsNotRelationDescriptor
public void shouldNotHandleCategoryWhenAttributeIsNotRelationDescriptor()
-
shouldNotReturnErrorWhenCategoryExists
public void shouldNotReturnErrorWhenCategoryExists()
-
shouldReturnErrorWhenCategoryDoesNotExist
public void shouldReturnErrorWhenCategoryDoesNotExist()
-
-