Class HJMPOptimisticConcurrencyTest

  • All Implemented Interfaces:
    JaloSessionHolder

    @IntegrationTest
    public class HJMPOptimisticConcurrencyTest
    extends HybrisJUnit4Test
    Tests HJMP persistence layer behavior concerning concurrent modification checks.

    There is a config parameter hjmp.throw.concurrent.modification.exceptions which either enables or disables checking that upon update a item row must have the same version that has been read when fetching the HJMP entity object. We discovered in PLA-10894 that switching off this check actually every conflicting update did not happen at all instead of both updates happening one after the other!

    • Constructor Detail

      • HJMPOptimisticConcurrencyTest

        public HJMPOptimisticConcurrencyTest()
    • Method Detail

      • testMissingUpdateProblemCheckEnabled

        public void testMissingUpdateProblemCheckEnabled()
                                                  throws JaloBusinessException,
                                                         java.lang.InterruptedException
        Throws:
        JaloBusinessException
        java.lang.InterruptedException
      • testMissingUpdateProblemCheckDisabled

        public void testMissingUpdateProblemCheckDisabled()
                                                   throws JaloBusinessException,
                                                          java.lang.InterruptedException
        Throws:
        JaloBusinessException
        java.lang.InterruptedException