Class ExcelEurope1PricesValidatorTest
- java.lang.Object
-
- com.hybris.backoffice.excel.validators.ExcelEurope1PricesValidatorTest
-
public class ExcelEurope1PricesValidatorTest extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCORRECT_PRICE_CURRENCYstatic java.lang.StringCORRECT_PRICE_QUANTITYstatic java.lang.StringEXISTING_CHANNELstatic java.lang.StringEXISTING_PRICE_GROUPstatic java.lang.StringEXISTING_UNITstatic java.lang.StringEXISTING_USERstatic java.lang.StringNON_EXISTING_CHANNELstatic java.lang.StringNOT_BLANKstatic java.lang.StringNOT_EXISTING_UPG_USER
-
Constructor Summary
Constructors Constructor Description ExcelEurope1PricesValidatorTest()
-
Method Summary
-
-
-
Field Detail
-
EXISTING_USER
public static final java.lang.String EXISTING_USER
- See Also:
- Constant Field Values
-
EXISTING_CHANNEL
public static final java.lang.String EXISTING_CHANNEL
- See Also:
- Constant Field Values
-
EXISTING_PRICE_GROUP
public static final java.lang.String EXISTING_PRICE_GROUP
- See Also:
- Constant Field Values
-
EXISTING_UNIT
public static final java.lang.String EXISTING_UNIT
- See Also:
- Constant Field Values
-
CORRECT_PRICE_QUANTITY
public static final java.lang.String CORRECT_PRICE_QUANTITY
- See Also:
- Constant Field Values
-
CORRECT_PRICE_CURRENCY
public static final java.lang.String CORRECT_PRICE_CURRENCY
- See Also:
- Constant Field Values
-
NOT_EXISTING_UPG_USER
public static final java.lang.String NOT_EXISTING_UPG_USER
- See Also:
- Constant Field Values
-
NON_EXISTING_CHANNEL
public static final java.lang.String NON_EXISTING_CHANNEL
- 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()
-
shouldHandleWhenDescriptorTypeIsPriceRow
public void shouldHandleWhenDescriptorTypeIsPriceRow()
-
shouldNotHandleWhenCellIsEmpty
public void shouldNotHandleWhenCellIsEmpty()
-
shouldNotHandleWhenDescriptorTypeIsNotPriceRow
public void shouldNotHandleWhenDescriptorTypeIsNotPriceRow()
-
shouldReturnPriceFormatError
public void shouldReturnPriceFormatError()
-
testPricesIncorrectFormat
public void testPricesIncorrectFormat(java.lang.String priceCurrencyValue)
-
shouldNotReturnPriceFormatError
public void shouldNotReturnPriceFormatError()
-
testPricesHasCorrectFormat
public void testPricesHasCorrectFormat(java.lang.String priceCurrencyValue)
-
shouldReturnNonExistingCurrencyError
public void shouldReturnNonExistingCurrencyError()
-
shouldReturnErrorWhenNetValueIsInCorrect
public void shouldReturnErrorWhenNetValueIsInCorrect()
-
testNetGrossIncorrect
public void testNetGrossIncorrect(java.lang.String netGross)
-
shouldNotReturnErrorWhenNetValueIsCorrect
public void shouldNotReturnErrorWhenNetValueIsCorrect()
-
testNetGrossCorrect
public void testNetGrossCorrect(java.lang.String netGross)
-
shouldNotReturnErrorWhenQuantityUnitIsCorrect
public void shouldNotReturnErrorWhenQuantityUnitIsCorrect()
-
testQuantityUnitIsCorrect
public void testQuantityUnitIsCorrect(java.lang.String quantityUnit)
-
shouldReturnErrorWhenQuantityUnitIsIncorrect
public void shouldReturnErrorWhenQuantityUnitIsIncorrect()
-
testQuantityUnitIsIncorrect
public void testQuantityUnitIsIncorrect(java.lang.String quantityUnit, java.lang.String validationMsg)
-
shouldNotReturnErrorWhenGivenUserPriceGroupExistsOrUser
public void shouldNotReturnErrorWhenGivenUserPriceGroupExistsOrUser()
-
testGivenUserOrUserGroupExists
public void testGivenUserOrUserGroupExists(java.lang.String userPriceGroupOrUser)
-
shouldReturnErrorWhenGivenUserPriceGroupDoesNotExist
public void shouldReturnErrorWhenGivenUserPriceGroupDoesNotExist()
-
shouldReturnErrorWhenUserGroupDefinedButNoPriceQuantity
public void shouldReturnErrorWhenUserGroupDefinedButNoPriceQuantity()
-
shouldReturnErrorChannelDoesNotExist
public void shouldReturnErrorChannelDoesNotExist()
-
shouldNotReturnErrorChannelExists
public void shouldNotReturnErrorChannelExists()
-
shouldReturnErrorWhenDateHasWrongFormat
public void shouldReturnErrorWhenDateHasWrongFormat()
-
testIncorrectDateRangeFormat
protected void testIncorrectDateRangeFormat(java.lang.String dateRange)
-
shouldNotReturnErrorWhenDateIsOk
public void shouldNotReturnErrorWhenDateIsOk()
-
testCorrectDateRangeFormat
protected void testCorrectDateRangeFormat(java.lang.String dateRange)
-
shouldReturnErrorWhenStartDateIsAfterEndDate
public void shouldReturnErrorWhenStartDateIsAfterEndDate()
-
validateWithCorrectPriceAnd
protected ExcelValidationResult validateWithCorrectPriceAnd(java.lang.String param, java.lang.String value)
-
validateWithCorrectPriceAnd
protected ExcelValidationResult validateWithCorrectPriceAnd(java.util.Map<java.lang.String,java.lang.String> params)
-
validateWithParams
protected ExcelValidationResult validateWithParams(java.util.Map<java.lang.String,java.lang.String> params)
-
-