@UnitTest public class DefaultConsignmentAmountCalculationStrategyTest extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static java.math.BigDecimal |
AMOUNT1 |
protected static java.math.BigDecimal |
AMOUNT2 |
protected static java.lang.String |
CODE1 |
protected static java.lang.String |
CODE2 |
protected static java.math.BigDecimal |
DELIVERY_COST |
protected static java.math.BigDecimal |
DELIVERY_COST_TAX |
protected static java.math.BigDecimal |
DISCOUNTS |
protected static java.math.BigDecimal |
PRODUCT_LEVEL_DISCOUNT |
protected static java.math.BigDecimal |
TAX1 |
protected static java.math.BigDecimal |
TAX2 |
protected static java.math.BigDecimal |
TOTAL_DISCOUNT |
protected static java.math.BigDecimal |
TOTAL_TAX |
| Constructor and Description |
|---|
DefaultConsignmentAmountCalculationStrategyTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
calculateAmountFirstConsignmentCapturedFirst() |
void |
calculateAmountForProductWithNoTaxValue() |
void |
calculateAmountGreaterThanAlreadyCaptured() |
void |
calculateAmountSecondConsignmentCapturedFirst() |
protected void |
calculateAndAssertDiscountAmountForConsignment(ConsignmentModel consignmentModel)
Calculates discount amount for a given
ConsignmentModel then asserts the calculated amount |
void |
calculateLeftOverOnLastConsignment() |
void |
calculateOrderWithOnlyOneConsignment() |
void |
cleanUp() |
void |
setUp() |
void |
shouldCalculateConsignmentEntryWithoutTax() |
void |
shouldCalculateConsignmentEntryWithTax() |
void |
shouldCalculateDiscountForIndividualConsignments() |
void |
shouldCalculateDiscountForTheLastConsignment() |
void |
shouldReturnZeroIfNoQtyLeftInCalculateConsignmentEntryAmount() |
protected static final java.lang.String CODE1
protected static final java.lang.String CODE2
protected static final java.math.BigDecimal AMOUNT1
protected static final java.math.BigDecimal AMOUNT2
protected static final java.math.BigDecimal DELIVERY_COST
protected static final java.math.BigDecimal DISCOUNTS
protected static final java.math.BigDecimal TAX1
protected static final java.math.BigDecimal TAX2
protected static final java.math.BigDecimal DELIVERY_COST_TAX
protected static final java.math.BigDecimal TOTAL_TAX
protected static final java.math.BigDecimal TOTAL_DISCOUNT
protected static final java.math.BigDecimal PRODUCT_LEVEL_DISCOUNT
public DefaultConsignmentAmountCalculationStrategyTest()
public void setUp()
public void cleanUp()
public void calculateAmountFirstConsignmentCapturedFirst()
public void calculateAmountSecondConsignmentCapturedFirst()
public void calculateLeftOverOnLastConsignment()
public void calculateOrderWithOnlyOneConsignment()
public void calculateAmountGreaterThanAlreadyCaptured()
public void calculateAmountForProductWithNoTaxValue()
public void shouldCalculateDiscountForIndividualConsignments()
public void shouldCalculateDiscountForTheLastConsignment()
public void shouldCalculateConsignmentEntryWithTax()
public void shouldCalculateConsignmentEntryWithoutTax()
public void shouldReturnZeroIfNoQtyLeftInCalculateConsignmentEntryAmount()
protected void calculateAndAssertDiscountAmountForConsignment(ConsignmentModel consignmentModel)
ConsignmentModel then asserts the calculated amountconsignmentModel - ConsignmentModel to calculate and assert the discountCopyright © 2018 SAP SE. All Rights Reserved.