Fix assertion for the revised SQLExceptionTranslator contract in 5.3
See gh-25681
This commit is contained in:
@@ -192,7 +192,7 @@ public class SQLErrorCodeSQLExceptionTranslatorTests {
|
||||
given(dataSource.getConnection()).willThrow(connectionException);
|
||||
|
||||
SQLErrorCodeSQLExceptionTranslator sext = new SQLErrorCodeSQLExceptionTranslator(dataSource);
|
||||
assertThat(sext.translate("test", null, duplicateKeyException)).isNotInstanceOf(DuplicateKeyException.class);
|
||||
assertThat(sext.translate("test", null, duplicateKeyException)).isNull();
|
||||
|
||||
DatabaseMetaData databaseMetaData = mock(DatabaseMetaData.class);
|
||||
given(databaseMetaData.getDatabaseProductName()).willReturn("Oracle");
|
||||
|
||||
Reference in New Issue
Block a user