5455565758596061626364
provider.configure( cfg ); error.expect( HibernateException.class ); error.expectMessage( "OGM001213" ); provider.start(); } @Test public void testConnectionErrorWrappedInHibernateException() throws Exception { Map<String, String> cfg = TestHelper.getEnvironmentProperties();
6970717273747576777879
provider.configure( cfg ); error.expect( HibernateException.class ); error.expectMessage( "OGM001214" ); provider.start(); } @Test public void testConnectionTimeout() { Map<String, Object> cfg = new HashMap<String, Object>();
9293949596979899100101102
provider.configure( cfg ); Exception exception = null; final long start = System.nanoTime(); try { provider.start(); } catch ( Exception e ) { exception = e; assertThat( System.nanoTime() - start ).isLessThanOrEqualTo( estimateSpentTime ); }