Skip to content

Use assertDoesNotThrow for double-close assertions in AbstractCipherStreamTest - #524

Open
siddiqueirshad wants to merge 1 commit into
apache:masterfrom
siddiqueirshad:fix-crypto-issues
Open

siddiqueirshad wants to merge 1 commit into
apache:masterfrom
siddiqueirshad:fix-crypto-issues

Conversation

@siddiqueirshad

Copy link
Copy Markdown

Modernize test assertions in AbstractCipherStreamTest#doExceptionTest by replacing try { ... } catch (IOException) { fail(...); } with assertDoesNotThrow(...) when asserting that closing an already-closed stream does not throw an exception.

Before you push a pull request, review this list:

  • Read the contribution guidelines for this project.
  • Read the ASF Generative Tooling Guidance if you use Artificial Intelligence (AI).
  • I used AI to create any part of, or all of, this pull request.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Each commit in the pull request should have a meaningful subject line and body.

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