Package de.hybris.platform.order
Class DeliveryModeServiceTest
- All Implemented Interfaces:
JaloSessionHolder
-
Field Summary
Fields inherited from class de.hybris.platform.servicelayer.ServicelayerTest
importServiceFields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetUp()Creates the core data, and necessary data for delivery modes.voidTries 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.voidTries 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 5Methods inherited from class de.hybris.platform.servicelayer.ServicelayerTest
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNoneMethods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getBeanName, prepareApplicationContextAndSessionMethods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
Constructor Details
-
DeliveryModeServiceTest
public DeliveryModeServiceTest()
-
-
Method Details
-
setUp
Creates the core data, and necessary data for delivery modes.- Throws:
Exception
-
testGetDeliveryMode
public 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.
-
testGetSupportedDeliveryModes
public 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
-