Class SQLRecoverableExceptionHandlerUnitTest
java.lang.Object
de.hybris.platform.jdbcwrapper.interceptor.recover.SQLRecoverableExceptionHandlerUnitTest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoid
-
Constructor Details
-
SQLRecoverableExceptionHandlerUnitTest
public SQLRecoverableExceptionHandlerUnitTest()
-
-
Method Details
-
shouldExecuteTheOperationWhenHandlerIsOpen
- 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
- Throws:
SQLException
-
shouldExecuteTheOperationAndOpenTheHandlerWhenHandlerIsClosedAndBackoffPeriodPassedAndTheContextIsNotRecoverableOneAndSomeoneElseOpenedTheHandler
public void shouldExecuteTheOperationAndOpenTheHandlerWhenHandlerIsClosedAndBackoffPeriodPassedAndTheContextIsNotRecoverableOneAndSomeoneElseOpenedTheHandler() throws SQLException- Throws:
SQLException
-