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