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