Fix assertion for the revised SQLExceptionTranslator contract in 5.3
See gh-25681
This commit is contained in:
parent
3aae0fc91b
commit
33195da64f
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue