Class CartRemovalJobTest
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.acceleratorservices.cronjob.CartRemovalJobTest
- All Implemented Interfaces:
JaloSessionHolder
Test class for testing the functionality of the CartRemovalJob.
Attention: this class tests only the saved carts functionality of this job other functionalities can be enhanced
-
Field Summary
FieldsFields 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 if expired saved carts exist will be removedvoidTest that saved carts will not be removed if they are not expiredvoidNo saved carts exist and test that no error happensvoidTest that a non expired saved cart with exceeded max age date will not be removedMethods 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
-
Field Details
-
SESSION_CART_PARAMETER_NAME
- See Also:
-
-
Constructor Details
-
CartRemovalJobTest
public CartRemovalJobTest()
-
-
Method Details
-
setUp
- Throws:
Exception
-
testNoSavedCartsAtAll
public void testNoSavedCartsAtAll()No saved carts exist and test that no error happens -
testNonExpiredSavedCarts
public void testNonExpiredSavedCarts()Test that saved carts will not be removed if they are not expired -
testSavedCartsWithExceededCartMaxAge
Test that a non expired saved cart with exceeded max age date will not be removed- Throws:
InterruptedException
-
testExpiredSavedCarts
public void testExpiredSavedCarts()Test if expired saved carts exist will be removed
-