Skip to content

Commit

Permalink
Fix wrong asserted code in SQLExceptionSubclassTranslatorTests (sprin…
Browse files Browse the repository at this point in the history
…g-projects#29748)

There was a typo in the test, covering the wrong SQLState code.

Polishes a644245.
Relates to spring-projectsgh-29699.
  • Loading branch information
izeye authored and mdeinum committed Jun 29, 2023
1 parent c263839 commit f42ec1b
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -59,7 +59,7 @@ public void exceptionClassTranslation() {
doTest(new SQLIntegrityConstraintViolationException("", "23505", 0), DuplicateKeyException.class);
doTest(new SQLIntegrityConstraintViolationException("", "23000", 1), DuplicateKeyException.class);
doTest(new SQLIntegrityConstraintViolationException("", "23000", 1062), DuplicateKeyException.class);
doTest(new SQLIntegrityConstraintViolationException("", "23505", 2627), DuplicateKeyException.class);
doTest(new SQLIntegrityConstraintViolationException("", "23000", 2627), DuplicateKeyException.class);
doTest(new SQLInvalidAuthorizationSpecException("", "", 0), PermissionDeniedDataAccessException.class);
doTest(new SQLNonTransientConnectionException("", "", 0), DataAccessResourceFailureException.class);
doTest(new SQLRecoverableException("", "", 0), RecoverableDataAccessException.class);
Expand Down

0 comments on commit f42ec1b

Please sign in to comment.