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