Class ExcelEurope1PricesValidatorTest
java.lang.Object
com.hybris.backoffice.excel.validators.ExcelEurope1PricesValidatorTest
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetup()voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidprotected voidtestCorrectDateRangeFormat(String dateRange) voidtestGivenUserOrUserGroupExists(String userPriceGroupOrUser) protected voidtestIncorrectDateRangeFormat(String dateRange) voidtestNetGrossCorrect(String netGross) voidtestNetGrossIncorrect(String netGross) voidtestPricesHasCorrectFormat(String priceCurrencyValue) voidtestPricesIncorrectFormat(String priceCurrencyValue) voidtestQuantityUnitIsCorrect(String quantityUnit) voidtestQuantityUnitIsIncorrect(String quantityUnit, String validationMsg) protected ExcelValidationResultvalidateWithCorrectPriceAnd(String param, String value) protected ExcelValidationResultvalidateWithCorrectPriceAnd(Map<String, String> params) protected ExcelValidationResultvalidateWithParams(Map<String, String> params)
-
Field Details
-
EXISTING_USER
- See Also:
-
EXISTING_CHANNEL
- See Also:
-
EXISTING_PRICE_GROUP
- See Also:
-
EXISTING_UNIT
- See Also:
-
CORRECT_PRICE_QUANTITY
- See Also:
-
CORRECT_PRICE_CURRENCY
- See Also:
-
NOT_EXISTING_UPG_USER
- See Also:
-
NON_EXISTING_CHANNEL
- See Also:
-
NOT_BLANK
- See Also:
-
-
Constructor Details
-
ExcelEurope1PricesValidatorTest
public ExcelEurope1PricesValidatorTest()
-
-
Method Details
-
setup
public void setup() -
shouldHandleWhenDescriptorTypeIsPriceRow
public void shouldHandleWhenDescriptorTypeIsPriceRow() -
shouldNotHandleWhenCellIsEmpty
public void shouldNotHandleWhenCellIsEmpty() -
shouldNotHandleWhenDescriptorTypeIsNotPriceRow
public void shouldNotHandleWhenDescriptorTypeIsNotPriceRow() -
shouldReturnPriceFormatError
public void shouldReturnPriceFormatError() -
testPricesIncorrectFormat
-
shouldNotReturnPriceFormatError
public void shouldNotReturnPriceFormatError() -
testPricesHasCorrectFormat
-
shouldReturnNonExistingCurrencyError
public void shouldReturnNonExistingCurrencyError() -
shouldReturnErrorWhenNetValueIsInCorrect
public void shouldReturnErrorWhenNetValueIsInCorrect() -
testNetGrossIncorrect
-
shouldNotReturnErrorWhenNetValueIsCorrect
public void shouldNotReturnErrorWhenNetValueIsCorrect() -
testNetGrossCorrect
-
shouldNotReturnErrorWhenQuantityUnitIsCorrect
public void shouldNotReturnErrorWhenQuantityUnitIsCorrect() -
testQuantityUnitIsCorrect
-
shouldReturnErrorWhenQuantityUnitIsIncorrect
public void shouldReturnErrorWhenQuantityUnitIsIncorrect() -
testQuantityUnitIsIncorrect
-
shouldNotReturnErrorWhenGivenUserPriceGroupExistsOrUser
public void shouldNotReturnErrorWhenGivenUserPriceGroupExistsOrUser() -
testGivenUserOrUserGroupExists
-
shouldReturnErrorWhenGivenUserPriceGroupDoesNotExist
public void shouldReturnErrorWhenGivenUserPriceGroupDoesNotExist() -
shouldReturnErrorWhenUserGroupDefinedButNoPriceQuantity
public void shouldReturnErrorWhenUserGroupDefinedButNoPriceQuantity() -
shouldReturnErrorChannelDoesNotExist
public void shouldReturnErrorChannelDoesNotExist() -
shouldNotReturnErrorChannelExists
public void shouldNotReturnErrorChannelExists() -
shouldReturnErrorWhenDateHasWrongFormat
public void shouldReturnErrorWhenDateHasWrongFormat() -
testIncorrectDateRangeFormat
-
shouldNotReturnErrorWhenDateIsOk
public void shouldNotReturnErrorWhenDateIsOk() -
testCorrectDateRangeFormat
-
shouldReturnErrorWhenStartDateIsAfterEndDate
public void shouldReturnErrorWhenStartDateIsAfterEndDate() -
validateWithCorrectPriceAnd
-
validateWithCorrectPriceAnd
-
validateWithParams
-