use of io.r2dbc.spi.R2dbcTimeoutException in project spring-framework by spring-projects.
the class ConnectionFactoryUtilsUnitTests method shouldTranslateTimeoutException.
@Test
public void shouldTranslateTimeoutException() {
Exception exception = ConnectionFactoryUtils.convertR2dbcException("", "", new R2dbcTimeoutException());
assertThat(exception).isInstanceOf(QueryTimeoutException.class);
}
Aggregations