Class ZoneDeliveryModeValueValidatorTest
- java.lang.Object
-
- de.hybris.platform.testframework.HybrisJUnit4Test
-
- de.hybris.platform.servicelayer.ServicelayerBaseTest
-
- de.hybris.platform.servicelayer.ServicelayerTest
-
- de.hybris.platform.servicelayer.ServicelayerTransactionalTest
-
- de.hybris.platform.order.interceptors.ZoneDeliveryModeValueValidatorTest
-
- All Implemented Interfaces:
JaloSessionHolder
@IntegrationTest public class ZoneDeliveryModeValueValidatorTest extends ServicelayerTransactionalTest
Test forZoneDeliveryModeValueValidator
.
-
-
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 ZoneDeliveryModeValueValidatorTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setUp()
Creates the core data, and necessary data for delivery modes.void
testZoneDeliveryModeValueValidator()
Tries to create theZoneDeliveryModeValueModel
with modelService, and tests theZoneDeliveryModeValueValidator
.-
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.Exception
Creates the core data, and necessary data for delivery modes.- Throws:
java.lang.Exception
-
testZoneDeliveryModeValueValidator
public void testZoneDeliveryModeValueValidator()
Tries to create theZoneDeliveryModeValueModel
with modelService, and tests theZoneDeliveryModeValueValidator
.- creates a new
ZoneDeliveryModeValueModel
in the duplicate_zone, and gets an InterceptorException, - creates a new
ZoneDeliveryModeValueModel
in the zone Germany with existed minimum value 0 Euro, and gets an InterceptorException, - creates a new
ZoneDeliveryModeValueModel
in the zone Germany with minimum value 10 Euro successfully.
- creates a new
-
-