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