Class SQLRecoverableExceptionHandlerUnitTest


  • @UnitTest
    public class SQLRecoverableExceptionHandlerUnitTest
    extends java.lang.Object
    • Constructor Detail

      • SQLRecoverableExceptionHandlerUnitTest

        public SQLRecoverableExceptionHandlerUnitTest()
    • Method Detail

      • shouldExecuteTheOperationWhenHandlerIsOpen

        public void shouldExecuteTheOperationWhenHandlerIsOpen()
                                                        throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • shouldRethrowTheExceptionAndDoNotChangeTheHandlerStateWhenHandlerIsOpenAndTheOperationFailsWithNonRecoverableException

        public void shouldRethrowTheExceptionAndDoNotChangeTheHandlerStateWhenHandlerIsOpenAndTheOperationFailsWithNonRecoverableException()
                                                                                                                                    throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • shouldRethrowTheExceptionAndCloseTheHandlerWhenHandlerIsOpenAndTheOperationFailsWithRecoverableException

        public void shouldRethrowTheExceptionAndCloseTheHandlerWhenHandlerIsOpenAndTheOperationFailsWithRecoverableException()
                                                                                                                      throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • shouldNotExecuteTheOperationWhenHandlerIsClosedAndBackoffPeriodPassedButTheContextIsNotRecoverableOne

        public void shouldNotExecuteTheOperationWhenHandlerIsClosedAndBackoffPeriodPassedButTheContextIsNotRecoverableOne()
                                                                                                                   throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • shouldExecuteTheOperationAndOpenTheHandlerWhenHandlerIsClosedAndBackoffPeriodPassedAndTheContextIsNotRecoverableOne

        public void shouldExecuteTheOperationAndOpenTheHandlerWhenHandlerIsClosedAndBackoffPeriodPassedAndTheContextIsNotRecoverableOne()
                                                                                                                                 throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • shouldReThrowTheExceptionWhenHandlerIsClosedAndBackoffPeriodPassedAndTheContextIsNotRecoverableOneButTheOperationFailsWithNonRecoverableException

        public void shouldReThrowTheExceptionWhenHandlerIsClosedAndBackoffPeriodPassedAndTheContextIsNotRecoverableOneButTheOperationFailsWithNonRecoverableException()
                                                                                                                                                               throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • shouldReThrowTheExceptionWhenHandlerIsClosedAndBackoffPeriodPassedAndTheContextIsNotRecoverableOneButTheOperationFailsWithRecoverableException

        public void shouldReThrowTheExceptionWhenHandlerIsClosedAndBackoffPeriodPassedAndTheContextIsNotRecoverableOneButTheOperationFailsWithRecoverableException()
                                                                                                                                                            throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • shouldNotExecuteTheOperationWhenHandlerIsClosedAndBackoffPeriodHasNotPassedYetAndTheContextIsRecoverableOne

        public void shouldNotExecuteTheOperationWhenHandlerIsClosedAndBackoffPeriodHasNotPassedYetAndTheContextIsRecoverableOne()
                                                                                                                         throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • shouldNotExecuteTheRecursiveOperationWhenTheHandlerIsClosedInTheMiddleOfIt

        public void shouldNotExecuteTheRecursiveOperationWhenTheHandlerIsClosedInTheMiddleOfIt()
                                                                                        throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • shouldExecuteTheRecursiveOperationDuringProbingPhase

        public void shouldExecuteTheRecursiveOperationDuringProbingPhase()
                                                                  throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • shouldExecuteTheOperationAndOpenTheHandlerWhenHandlerIsClosedAndBackoffPeriodPassedAndTheContextIsNotRecoverableOneAndSomeoneElseOpenedTheHandler

        public void shouldExecuteTheOperationAndOpenTheHandlerWhenHandlerIsClosedAndBackoffPeriodPassedAndTheContextIsNotRecoverableOneAndSomeoneElseOpenedTheHandler()
                                                                                                                                                               throws java.sql.SQLException
        Throws:
        java.sql.SQLException