@UnitTest public class NoSplittingStrategyTest extends java.lang.Object
| Constructor and Description |
|---|
NoSplittingStrategyTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
noSplittingSourceFirstLocation()
Given an order with 2 entries:
entry 1 : {quantity: 3, product: cheese} entry 2 : {quantity: 4, product: milk} Result: the source should complete using the first location (Montreal) {Warehouse: Montreal, Availability : {[cheese,4], [milk,3]} {Warehouse: Brossard, Availability : {[cheese,4], [milk,3]} Assert: It verifies the number of SourcingResultIt checks if the source is completed. |
void |
noSplittingSourceSecondLocation()
Given an order with 2 entries:
entry 1 : {quantity: 3, product: cheese} entry 2 : {quantity: 4, product: milk} Result: the source should complete using the second location(Brossard) {Warehouse: Montreal, Availability : {[cheese,0], [milk,0]} {Warehouse: Brossard, Availability : {[cheese,5], [milk,5]} Assert: It verifies the number of SourcingResultIt checks if the source is completed. |
void |
noSplittingSourcingNoStock()
Given an order with 2 entries:
entry 1 : {quantity: 3, product: cheese} entry 2 : {quantity: 4, product: milk} Result: the source should not complete. |
void |
setUp() |
void |
shouldFail_nullContext() |
public void setUp()
throws java.lang.Exception
java.lang.Exceptionpublic void noSplittingSourcingNoStock()
SourcingResultpublic void noSplittingSourceFirstLocation()
SourcingResultpublic void noSplittingSourceSecondLocation()
SourcingResultpublic void shouldFail_nullContext()
Copyright © 2018 SAP SE. All Rights Reserved.