Class CartRemovalJobTest

All Implemented Interfaces:
JaloSessionHolder

@IntegrationTest public class CartRemovalJobTest extends ServicelayerTransactionalTest
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 Details

  • Constructor Details

    • CartRemovalJobTest

      public CartRemovalJobTest()
  • Method Details

    • setUp

      public void setUp() throws Exception
      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

      public void testSavedCartsWithExceededCartMaxAge() throws InterruptedException
      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