Class ImpExEmptyUpdateTest

    • Constructor Detail

      • ImpExEmptyUpdateTest

        public ImpExEmptyUpdateTest()
    • Method Detail

      • testEmptyUpdateMultiThreadedServiceLayer

        public void testEmptyUpdateMultiThreadedServiceLayer()
      • testEmptyUpdateMultiThreadedJalo

        public void testEmptyUpdateMultiThreadedJalo()
      • testEmptyUpdateSingleThreadedServiceLayer

        public void testEmptyUpdateSingleThreadedServiceLayer()
      • testEmptyUpdateSingleThreadedJalo

        public void testEmptyUpdateSingleThreadedJalo()
      • testOptimisticLockingStillWorks

        public void testOptimisticLockingStillWorks()
      • testOptimisticLockingStillWorksAndDetectsConcurrentUpdate

        public void testOptimisticLockingStillWorksAndDetectsConcurrentUpdate()
      • testOptimisticLockingStillWorksAndDetectsConcurrentUpdateToSameValue

        public void testOptimisticLockingStillWorksAndDetectsConcurrentUpdateToSameValue()
      • testOptimisticLockingStillWorksTX

        public void testOptimisticLockingStillWorksTX()
                                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testOptimisticLockingStillWorksAndDetectsConcurrentUpdateTX

        public void testOptimisticLockingStillWorksAndDetectsConcurrentUpdateTX()
      • testOptimisticLockingStillWorksAndDetectsConcurrentUpdateToSameValueTX

        public void testOptimisticLockingStillWorksAndDetectsConcurrentUpdateToSameValueTX()
                                                                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • withOptimisticLocking

        protected void withOptimisticLocking​(java.lang.Runnable r)
      • inTransaction

        protected void inTransaction​(java.lang.Runnable r)
      • inTransactionWhichFails

        protected void inTransactionWhichFails​(java.lang.Runnable r)
      • simulateConcurrentUpdateToSameValueMustFail

        protected void simulateConcurrentUpdateToSameValueMustFail​(CountryModel model,
                                                                   Country jaloItem,
                                                                   boolean mustFailImmediately)
      • simulateConcurrentUpdateMustFail

        protected void simulateConcurrentUpdateMustFail​(CountryModel model,
                                                        Country jaloItem,
                                                        boolean mustFailImmediately)
      • simulateJaloWritesGetTrackedCorrectly

        protected void simulateJaloWritesGetTrackedCorrectly​(CountryModel model,
                                                             Country jaloItem)
      • changeInOtherThread

        protected long changeInOtherThread​(PK itemPK,
                                           java.lang.String property,
                                           java.lang.Object value)
      • testEmptyUpdateImpl

        protected void testEmptyUpdateImpl​(boolean legacyMode,
                                           int threads)