Class ResetMaxOrderQuantityJobTest
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.timedaccesspromotionengineservices.cronjob.ResetMaxOrderQuantityJobTest
- All Implemented Interfaces:
JaloSessionHolder
* Test class for testing the functionality of the ResetMaxOrderQuantityJob.
-
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()voidTest that if there is no promotion rule, the job can be performed successfullyvoidTest that if there is no product, the job can be performed successfullyvoidTest that if the promotion rule is unpublished, the job can be performed successfullyMethods 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
-
ResetMaxOrderQuantityJobTest
public ResetMaxOrderQuantityJobTest()
-
-
Method Details
-
setUp
- Throws:
Exception
-
testPerform_No_PromotionRule
public void testPerform_No_PromotionRule()Test that if there is no promotion rule, the job can be performed successfully -
testPerform_PromotionRule_Unpublished
public void testPerform_PromotionRule_Unpublished()Test that if the promotion rule is unpublished, the job can be performed successfully -
testPerform_PromotionRule_No_Product
public void testPerform_PromotionRule_No_Product()Test that if there is no product, the job can be performed successfully
-