public class ExcelEurope1PricesValidatorTest
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CORRECT_PRICE_CURRENCY |
static java.lang.String |
CORRECT_PRICE_QUANTITY |
static java.lang.String |
EXISTING_CHANNEL |
static java.lang.String |
EXISTING_PRICE_GROUP |
static java.lang.String |
EXISTING_UNIT |
static java.lang.String |
EXISTING_USER |
static java.lang.String |
NON_EXISTING_CHANNEL |
static java.lang.String |
NOT_BLANK |
static java.lang.String |
NOT_EXISTING_UPG_USER |
| Constructor and Description |
|---|
ExcelEurope1PricesValidatorTest() |
public static final java.lang.String EXISTING_USER
public static final java.lang.String EXISTING_CHANNEL
public static final java.lang.String EXISTING_PRICE_GROUP
public static final java.lang.String EXISTING_UNIT
public static final java.lang.String CORRECT_PRICE_QUANTITY
public static final java.lang.String CORRECT_PRICE_CURRENCY
public static final java.lang.String NOT_EXISTING_UPG_USER
public static final java.lang.String NON_EXISTING_CHANNEL
public static final java.lang.String NOT_BLANK
public void setup()
public void shouldHandleWhenDescriptorTypeIsPriceRow()
public void shouldNotHandleWhenCellIsEmpty()
public void shouldNotHandleWhenDescriptorTypeIsNotPriceRow()
public void shouldReturnPriceFormatError()
public void testPricesIncorrectFormat(java.lang.String priceCurrencyValue)
public void shouldNotReturnPriceFormatError()
public void testPricesHasCorrectFormat(java.lang.String priceCurrencyValue)
public void shouldReturnNonExistingCurrencyError()
public void shouldReturnErrorWhenNetValueIsInCorrect()
public void testNetGrossIncorrect(java.lang.String netGross)
public void shouldNotReturnErrorWhenNetValueIsCorrect()
public void testNetGrossCorrect(java.lang.String netGross)
public void shouldNotReturnErrorWhenQuantityUnitIsCorrect()
public void testQuantityUnitIsCorrect(java.lang.String quantityUnit)
public void shouldReturnErrorWhenQuantityUnitIsIncorrect()
public void testQuantityUnitIsIncorrect(java.lang.String quantityUnit,
java.lang.String validationMsg)
public void shouldNotReturnErrorWhenGivenUserPriceGroupExistsOrUser()
public void testGivenUserOrUserGroupExists(java.lang.String userPriceGroupOrUser)
public void shouldReturnErrorWhenGivenUserPriceGroupDoesNotExist()
public void shouldReturnErrorWhenUserGroupDefinedButNoPriceQuantity()
public void shouldReturnErrorChannelDoesNotExist()
public void shouldNotReturnErrorChannelExists()
public void shouldReturnErrorWhenDateHasWrongFormat()
protected void testIncorrectDateRangeFormat(java.lang.String dateRange)
public void shouldNotReturnErrorWhenDateIsOk()
protected void testCorrectDateRangeFormat(java.lang.String dateRange)
public void shouldReturnErrorWhenStartDateIsAfterEndDate()
protected ExcelValidationResult validateWithCorrectPriceAnd(java.lang.String param, java.lang.String value)
protected ExcelValidationResult validateWithCorrectPriceAnd(java.util.Map<java.lang.String,java.lang.String> params)
protected ExcelValidationResult validateWithParams(java.util.Map<java.lang.String,java.lang.String> params)
Copyright © 2018 SAP SE. All Rights Reserved.