Class SQLRecoverableExceptionHandlerUnitTest

java.lang.Object
de.hybris.platform.jdbcwrapper.interceptor.recover.SQLRecoverableExceptionHandlerUnitTest

@UnitTest public class SQLRecoverableExceptionHandlerUnitTest extends Object
  • Constructor Details

    • SQLRecoverableExceptionHandlerUnitTest

      public SQLRecoverableExceptionHandlerUnitTest()
  • Method Details

    • shouldExecuteTheOperationWhenHandlerIsOpen

      public void shouldExecuteTheOperationWhenHandlerIsOpen() throws SQLException
      Throws:
      SQLException
    • shouldRethrowTheExceptionAndDoNotChangeTheHandlerStateWhenHandlerIsOpenAndTheOperationFailsWithNonRecoverableException

      public void shouldRethrowTheExceptionAndDoNotChangeTheHandlerStateWhenHandlerIsOpenAndTheOperationFailsWithNonRecoverableException() throws SQLException
      Throws:
      SQLException
    • shouldRethrowTheExceptionAndCloseTheHandlerWhenHandlerIsOpenAndTheOperationFailsWithRecoverableException

      public void shouldRethrowTheExceptionAndCloseTheHandlerWhenHandlerIsOpenAndTheOperationFailsWithRecoverableException() throws SQLException
      Throws:
      SQLException
    • shouldNotExecuteTheOperationWhenHandlerIsClosedAndBackoffPeriodPassedButTheContextIsNotRecoverableOne

      public void shouldNotExecuteTheOperationWhenHandlerIsClosedAndBackoffPeriodPassedButTheContextIsNotRecoverableOne() throws SQLException
      Throws:
      SQLException
    • shouldExecuteTheOperationAndOpenTheHandlerWhenHandlerIsClosedAndBackoffPeriodPassedAndTheContextIsNotRecoverableOne

      public void shouldExecuteTheOperationAndOpenTheHandlerWhenHandlerIsClosedAndBackoffPeriodPassedAndTheContextIsNotRecoverableOne() throws SQLException
      Throws:
      SQLException
    • shouldReThrowTheExceptionWhenHandlerIsClosedAndBackoffPeriodPassedAndTheContextIsNotRecoverableOneButTheOperationFailsWithNonRecoverableException

      public void shouldReThrowTheExceptionWhenHandlerIsClosedAndBackoffPeriodPassedAndTheContextIsNotRecoverableOneButTheOperationFailsWithNonRecoverableException() throws SQLException
      Throws:
      SQLException
    • shouldReThrowTheExceptionWhenHandlerIsClosedAndBackoffPeriodPassedAndTheContextIsNotRecoverableOneButTheOperationFailsWithRecoverableException

      public void shouldReThrowTheExceptionWhenHandlerIsClosedAndBackoffPeriodPassedAndTheContextIsNotRecoverableOneButTheOperationFailsWithRecoverableException() throws SQLException
      Throws:
      SQLException
    • shouldNotExecuteTheOperationWhenHandlerIsClosedAndBackoffPeriodHasNotPassedYetAndTheContextIsRecoverableOne

      public void shouldNotExecuteTheOperationWhenHandlerIsClosedAndBackoffPeriodHasNotPassedYetAndTheContextIsRecoverableOne() throws SQLException
      Throws:
      SQLException
    • shouldNotExecuteTheRecursiveOperationWhenTheHandlerIsClosedInTheMiddleOfIt

      public void shouldNotExecuteTheRecursiveOperationWhenTheHandlerIsClosedInTheMiddleOfIt() throws SQLException
      Throws:
      SQLException
    • shouldExecuteTheRecursiveOperationDuringProbingPhase

      public void shouldExecuteTheRecursiveOperationDuringProbingPhase() throws SQLException
      Throws:
      SQLException
    • shouldExecuteTheOperationAndOpenTheHandlerWhenHandlerIsClosedAndBackoffPeriodPassedAndTheContextIsNotRecoverableOneAndSomeoneElseOpenedTheHandler

      public void shouldExecuteTheOperationAndOpenTheHandlerWhenHandlerIsClosedAndBackoffPeriodPassedAndTheContextIsNotRecoverableOneAndSomeoneElseOpenedTheHandler() throws SQLException
      Throws:
      SQLException