Package de.hybris.platform.jdbcwrapper
Class ConnectionErrorCheckingJDBCConnectionPoolTest
java.lang.Object
de.hybris.platform.jdbcwrapper.ConnectionErrorCheckingJDBCConnectionPoolTest
Test for jdbc connect retry mechanism.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid(regression test) no retry --> single connection creation error must throw exceptionvoid(regression test) no retry --> single connection creation error must throw exceptionvoidvoidretry success --> 3 retries configured + single connection error must not throw any exception + connection must be returnedvoidretry too low --> 1 retry configured + two connection creation error must throw exception again
-
Constructor Details
-
ConnectionErrorCheckingJDBCConnectionPoolTest
public ConnectionErrorCheckingJDBCConnectionPoolTest()
-
-
Method Details
-
testBackwardCompatibility
(regression test) no retry --> single connection creation error must throw exception- Throws:
Exception
-
testBackwardCompatibility2
(regression test) no retry --> single connection creation error must throw exception- Throws:
Exception
-
testRetrySuccess
retry success --> 3 retries configured + single connection error must not throw any exception + connection must be returned- Throws:
Exception
-
testReallyHighRetrySuccess
- Throws:
Exception
-
testRetryTooLow
retry too low --> 1 retry configured + two connection creation error must throw exception again- Throws:
Exception
-