public class BasecommerceTest extends ServicelayerTest
importServicejaloSession| Constructor and Description |
|---|
BasecommerceTest() |
| Modifier and Type | Method and Description |
|---|---|
static void |
createCoreData() |
static void |
createDefaultCatalog() |
void |
createOrder() |
void |
setUp() |
void |
testMultiAddressCalculation()
Scenario: 1
testProduct0 -> deliveryModeCode1( delivery cost:= 4.2 ) testProduct1 -> deliveryModeCode1( delivery cost:= 4.2 ) ==> package no.1 ( delivery cost:= 4.2 ) testProduct2 -> deliveryModeCode3( delivery cost:= 3.8 ) ==> package no.2 ( delivery cost:= 3.8 ) usage of DefaultMultiAddressDeliveryCostsStrategy -> total sum of delivery costs: 8.0 Scenario: 2 usage of DefaultDeliveryCostsStrategy -> total sum of delivery costs: 0.0 Scenario: 3 testProduct0 -> deliveryModeCode1( delivery cost:= 4.2 ) testProduct1 -> deliveryModeCode1( delivery cost:= 4.2 ) ==> package no.1 ( delivery cost:= 4.2 ) testProduct2 -> deliveryMode is null -> fallback to delivery mode of order( delivery cost:= 0.0 ) ==> package no.2 ( delivery cost:= 0.0 ) usage of DefaultMultiAddressDeliveryCostsStrategy -> total sum of delivery costs: 4.2 Scenario: 4 testProduct0 -> deliveryAddress is null -> fallback to delivery address of order -> additional package ==> package no.1 ( delivery cost:= 4.2 ) ==> package no.2 ( delivery cost:= 4.2 ) ==> package no.3 ( delivery cost:= 0.0 ) usage of DefaultMultiAddressDeliveryCostsStrategy -> total sum of delivery costs: 8.4 |
createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNoneautowireProperties, getBeanName, prepareApplicationContextAndSessionestablishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSessionpublic void setUp()
throws java.lang.Exception
java.lang.Exceptionpublic void testMultiAddressCalculation()
throws JaloDeliveryModeException,
JaloPriceFactoryException
public static void createCoreData()
throws java.lang.Exception
java.lang.Exceptionpublic static void createDefaultCatalog()
throws java.lang.Exception
java.lang.Exceptionpublic void createOrder()
throws InvalidCartException,
java.lang.Exception
InvalidCartExceptionjava.lang.ExceptionCopyright © 2018 SAP SE. All Rights Reserved.