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 Detail

      • SESSION_CART_PARAMETER_NAME

        public static final java.lang.String SESSION_CART_PARAMETER_NAME
        See Also:
        Constant Field Values
    • Constructor Detail

      • CartRemovalJobTest

        public CartRemovalJobTest()
    • Method Detail

      • setUp

        public void setUp()
                   throws java.lang.Exception
        Throws:
        java.lang.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 java.lang.InterruptedException
        Test that a non expired saved cart with exceeded max age date will not be removed
        Throws:
        java.lang.InterruptedException
      • testExpiredSavedCarts

        public void testExpiredSavedCarts()
        Test if expired saved carts exist will be removed