Class ConnectionErrorCheckingJDBCConnectionPoolTest

java.lang.Object
de.hybris.platform.jdbcwrapper.ConnectionErrorCheckingJDBCConnectionPoolTest

@UnitTest public class ConnectionErrorCheckingJDBCConnectionPoolTest extends Object
Test for jdbc connect retry mechanism.
  • Constructor Details

    • ConnectionErrorCheckingJDBCConnectionPoolTest

      public ConnectionErrorCheckingJDBCConnectionPoolTest()
  • Method Details

    • testBackwardCompatibility

      public void testBackwardCompatibility() throws Exception
      (regression test) no retry --> single connection creation error must throw exception
      Throws:
      Exception
    • testBackwardCompatibility2

      public void testBackwardCompatibility2() throws Exception
      (regression test) no retry --> single connection creation error must throw exception
      Throws:
      Exception
    • testRetrySuccess

      public void testRetrySuccess() throws Exception
      retry success --> 3 retries configured + single connection error must not throw any exception + connection must be returned
      Throws:
      Exception
    • testReallyHighRetrySuccess

      public void testReallyHighRetrySuccess() throws Exception
      Throws:
      Exception
    • testRetryTooLow

      public void testRetryTooLow() throws Exception
      retry too low --> 1 retry configured + two connection creation error must throw exception again
      Throws:
      Exception