Package de.hybris.platform.order
Class DeliveryModeServiceTest
- java.lang.Object
-
- All Implemented Interfaces:
JaloSessionHolder
@DemoTest public class DeliveryModeServiceTest extends ServicelayerTransactionalTest
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.servicelayer.ServicelayerTest
importService
-
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession
-
-
Constructor Summary
Constructors Constructor Description DeliveryModeServiceTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetUp()Creates the core data, and necessary data for delivery modes.voidtestGetDeliveryMode()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.voidtestGetSupportedDeliveryModes()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-
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerTest
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNone
-
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getBeanName, prepareApplicationContextAndSession
-
Methods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
-
-
-
Method Detail
-
setUp
public void setUp() throws java.lang.ExceptionCreates the core data, and necessary data for delivery modes.- Throws:
java.lang.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
-
-