Skip to content

Use AssertJ exception assertions instead of fail - #1694

Open
ngocnhan-tran1996 wants to merge 1 commit into
spring-projects:mainfrom
ngocnhan-tran1996:refactor-tests
Open

ngocnhan-tran1996 wants to merge 1 commit into
spring-projects:mainfrom
ngocnhan-tran1996:refactor-tests

Conversation

@ngocnhan-tran1996

Copy link
Copy Markdown
Contributor

Replace the manual try-catch and fail with assertThatExceptionOfType and its available assertions for verifying the expected exception and cause.

Replace the manual `try-catch` and `fail` with `assertThatExceptionOfType` and its available assertions for verifying the expected exception and cause.

Signed-off-by: Tran Ngoc Nhan <ngocnhan.tran1996@gmail.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant