Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CBL-4409: Remove error-prone 'expected' annotation #182

Merged
merged 2 commits into from
May 19, 2023
Merged

Conversation

bmeike
Copy link
Contributor

@bmeike bmeike commented May 19, 2023

Also: CBL-4344: Close autocloseables

This really should be two separate commits. The juggling necessary to do that, though would just take us all forever. Please pardon my combining them

@bmeike bmeike requested review from pasin and borrrden May 19, 2023 18:03
@bmeike bmeike self-assigned this May 19, 2023
@bmeike
Copy link
Contributor Author

bmeike commented May 19, 2023

btw, the problem with the "@test(expected=...) annotation, which will make a test fail unless it throws the expected exception, is that the exception can come from anywhere in the test, not only the intended location.

Also, "expected" cannot check a CBL exception to be sure that it has the expected domain and code

@bmeike bmeike merged commit de6694c into master May 19, 2023
@bmeike bmeike deleted the pr/CBL-4344 branch May 19, 2023 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants