Class ExcelEurope1PricesValidatorTest


  • public class ExcelEurope1PricesValidatorTest
    extends java.lang.Object
    • Constructor Detail

      • ExcelEurope1PricesValidatorTest

        public ExcelEurope1PricesValidatorTest()
    • 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)