Skip to content

refactor: replace try/catch blocks with assertThrows#4806

Open
Rian-Ismael wants to merge 1 commit intoJanusGraph:masterfrom
Rian-Ismael:master
Open

refactor: replace try/catch blocks with assertThrows#4806
Rian-Ismael wants to merge 1 commit intoJanusGraph:masterfrom
Rian-Ismael:master

Conversation

@Rian-Ismael
Copy link
Contributor

@Rian-Ismael Rian-Ismael commented Jul 6, 2025

Replaces manual try/catch blocks with assertThrows to improve readability and align with modern testing practices.
Using assertThrows clarifies the test intent, eliminates unnecessary control flow, and ensures that exception validation is concise and consistent.
This enhances test maintainability and makes failures easier to debug.


Thank you for contributing to JanusGraph!

In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:

For all changes:

  • Has your PR been rebased against the latest commit within the target branch (typically master)?

Loading
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.

2 participants