@DemoTest public class ZoneDeliveryModeServiceTest extends ServicelayerTransactionalTest
importServicejaloSession| Constructor and Description |
|---|
ZoneDeliveryModeServiceTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp()
Creates the core data, and necessary data for delivery modes.
|
void |
testGetCurrencies()
Tries to search for the supported currencies in the
ZoneModel and with the ZoneDeliveryModeModel:
retrieves ZoneDeliveryModeModel with code "dhl",
retrieves ZoneModel with code "de",
tests there is one supported currency for the found ZoneModel and ZoneDeliveryModeModel
retrieves ZoneDeliveryModeModel with code "ups",
retrieves ZoneModel with code "world",
tests there are 2 supported currencies for the found ZoneModel and ZoneDeliveryModeModel
|
void |
testGetDeliveryMode()
Tries to search for the delivery mode with code:
successful with "courier",
caught UnknownIdentifierException with "No_Such_DeliveryMode",
found all delivery modes, whose size is 3.
|
void |
testGetDeliveryValue()
Tries to search for the delivery value with the currency in the zone and with the specific delivery mode.
|
void |
testGetDeliveryValues()
Tries to search for the delivery values with the currency in the zone and with the specific delivery mode.
|
void |
testGetSupportedDeliveryModes()
Tries to search for the supported delivery modes with the payment mode:
found payment mode with "creditcard",
found all supported delivery modes for this payment mode, which is 5
|
void |
testGetZone()
Tries to search for the zone with code:
successful with "europe",
caught UnknownIdentifierException with "No_Such_Zone",
found all zones, whose size is 3.
|
void |
testGetZonesForDeliveryMode()
Tries to search for the zones with the specific
ZoneDeliveryModeModel:
found 3 zones for "dhl".
found 2 zones for "fedex".
found 3 zones for "ups".
|
void |
testIsZoneAllowed()
Tests whether the specific zone is allowed for the delivery mode.
|
void |
testSetDeliveryCost()
Tries to set the delivery value with the currency and minimum value in the zone and with the specific delivery
mode.
|
createCoreData, createDefaultCatalog, 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 testGetDeliveryMode()
public void testGetSupportedDeliveryModes()
public void testGetZone()
public void testGetZonesForDeliveryMode()
ZoneDeliveryModeModel:
public void testGetCurrencies()
ZoneModel and with the ZoneDeliveryModeModel:
ZoneDeliveryModeModel with code "dhl",ZoneModel with code "de",ZoneModel and ZoneDeliveryModeModelZoneDeliveryModeModel with code "ups",ZoneModel with code "world",ZoneModel and ZoneDeliveryModeModelpublic void testSetDeliveryCost()
public void testGetDeliveryValue()
public void testGetDeliveryValues()
public void testIsZoneAllowed()
Copyright © 2018 SAP SE. All Rights Reserved.