Skip to content

Fix UnparsedEntityCheckingTest: remove leftover RuntimeException - #115

Open
elharo wants to merge 2 commits into
mainfrom
fix-unparsedentity-test
Open

Fix UnparsedEntityCheckingTest: remove leftover RuntimeException#115
elharo wants to merge 2 commits into
mainfrom
fix-unparsedentity-test

Conversation

@elharo

@elharo elharo commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

testDefaultValid() in UnparsedEntityCheckingTest had a leftover throw new RuntimeException(); after checkDefault() at line 58, which caused the test to always fail with an error.

This was likely left over from development/debugging. Removed the throw statement so the test properly passes when validation succeeds.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The try-catch can be removed. If an exception is thrown the test fails. No try-catch is needed

@elharo elharo left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed try-catch blocks from all test methods. Exceptions now propagate naturally to JUnit.

@elharo

elharo commented Jul 17, 2026

Copy link
Copy Markdown
Contributor Author

Removed try-catch blocks from all test methods in response to review feedback. Exceptions now propagate naturally to JUnit.

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