Class ExcelEurope1PricesValidatorTest

java.lang.Object
com.hybris.backoffice.excel.validators.ExcelEurope1PricesValidatorTest

public class ExcelEurope1PricesValidatorTest extends Object
  • Field Details

  • 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

      public void testPricesIncorrectFormat(String priceCurrencyValue)
    • shouldNotReturnPriceFormatError

      public void shouldNotReturnPriceFormatError()
    • testPricesHasCorrectFormat

      public void testPricesHasCorrectFormat(String priceCurrencyValue)
    • shouldReturnNonExistingCurrencyError

      public void shouldReturnNonExistingCurrencyError()
    • shouldReturnErrorWhenNetValueIsInCorrect

      public void shouldReturnErrorWhenNetValueIsInCorrect()
    • testNetGrossIncorrect

      public void testNetGrossIncorrect(String netGross)
    • shouldNotReturnErrorWhenNetValueIsCorrect

      public void shouldNotReturnErrorWhenNetValueIsCorrect()
    • testNetGrossCorrect

      public void testNetGrossCorrect(String netGross)
    • shouldNotReturnErrorWhenQuantityUnitIsCorrect

      public void shouldNotReturnErrorWhenQuantityUnitIsCorrect()
    • testQuantityUnitIsCorrect

      public void testQuantityUnitIsCorrect(String quantityUnit)
    • shouldReturnErrorWhenQuantityUnitIsIncorrect

      public void shouldReturnErrorWhenQuantityUnitIsIncorrect()
    • testQuantityUnitIsIncorrect

      public void testQuantityUnitIsIncorrect(String quantityUnit, String validationMsg)
    • shouldNotReturnErrorWhenGivenUserPriceGroupExistsOrUser

      public void shouldNotReturnErrorWhenGivenUserPriceGroupExistsOrUser()
    • testGivenUserOrUserGroupExists

      public void testGivenUserOrUserGroupExists(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(String dateRange)
    • shouldNotReturnErrorWhenDateIsOk

      public void shouldNotReturnErrorWhenDateIsOk()
    • testCorrectDateRangeFormat

      protected void testCorrectDateRangeFormat(String dateRange)
    • shouldReturnErrorWhenStartDateIsAfterEndDate

      public void shouldReturnErrorWhenStartDateIsAfterEndDate()
    • validateWithCorrectPriceAnd

      protected ExcelValidationResult validateWithCorrectPriceAnd(String param, String value)
    • validateWithCorrectPriceAnd

      protected ExcelValidationResult validateWithCorrectPriceAnd(Map<String,String> params)
    • validateWithParams

      protected ExcelValidationResult validateWithParams(Map<String,String> params)