@UnitTest public class SQLRecoverableExceptionHandlerUnitTest extends java.lang.Object
| Constructor and Description |
|---|
SQLRecoverableExceptionHandlerUnitTest() |
public SQLRecoverableExceptionHandlerUnitTest()
public void shouldExecuteTheOperationWhenHandlerIsOpen()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void shouldRethrowTheExceptionAndDoNotChangeTheHandlerStateWhenHandlerIsOpenAndTheOperationFailsWithNonRecoverableException()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void shouldRethrowTheExceptionAndCloseTheHandlerWhenHandlerIsOpenAndTheOperationFailsWithRecoverableException()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void shouldNotExecuteTheOperationWhenHandlerIsClosedAndBackoffPeriodPassedButTheContextIsNotRecoverableOne()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void shouldExecuteTheOperationAndOpenTheHandlerWhenHandlerIsClosedAndBackoffPeriodPassedAndTheContextIsNotRecoverableOne()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void shouldReThrowTheExceptionWhenHandlerIsClosedAndBackoffPeriodPassedAndTheContextIsNotRecoverableOneButTheOperationFailsWithNonRecoverableException()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void shouldReThrowTheExceptionWhenHandlerIsClosedAndBackoffPeriodPassedAndTheContextIsNotRecoverableOneButTheOperationFailsWithRecoverableException()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void shouldNotExecuteTheOperationWhenHandlerIsClosedAndBackoffPeriodHasNotPassedYetAndTheContextIsRecoverableOne()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void shouldNotExecuteTheRecursiveOperationWhenTheHandlerIsClosedInTheMiddleOfIt()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void shouldExecuteTheRecursiveOperationDuringProbingPhase()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void shouldExecuteTheOperationAndOpenTheHandlerWhenHandlerIsClosedAndBackoffPeriodPassedAndTheContextIsNotRecoverableOneAndSomeoneElseOpenedTheHandler()
throws java.sql.SQLException
java.sql.SQLExceptionCopyright © 2018 SAP SE. All Rights Reserved.