Skip to content

feat(test): add ApplicationErrorAssert fluent assertion utility#500

Merged
sleberknight merged 1 commit intomainfrom
431-application-error-assert
Apr 30, 2026
Merged

feat(test): add ApplicationErrorAssert fluent assertion utility#500
sleberknight merged 1 commit intomainfrom
431-application-error-assert

Conversation

@sleberknight
Copy link
Copy Markdown
Member

@sleberknight sleberknight commented Apr 30, 2026

Add AssertJ-style fluent assertions for ApplicationError by
introducing ApplicationErrorAssert, which extends AssertJ's
AbstractAssert. The entry point is assertThatApplicationError.

Supports chaining assertions on all ApplicationError fields:
description, exception type/message, cause type/message,
stack trace, numTimesOccurred, resolved status, host info, and id.
Each field has both equality and (where applicable) contains
variants, as well as a hasNoX variant for null checks.

Closes #499

Add AssertJ-style fluent assertions for ApplicationError via
ApplicationErrorAssert, extending AbstractAssert. Supports
chaining assertions on all ApplicationError fields including
description, exception type/message, cause type/message,
stack trace, numTimesOccurred, resolved, host info, and id.

Closes #431
@sleberknight sleberknight self-assigned this Apr 30, 2026
@sonarqubecloud
Copy link
Copy Markdown

@sleberknight sleberknight merged commit 26205d8 into main Apr 30, 2026
8 checks passed
@sleberknight sleberknight deleted the 431-application-error-assert branch April 30, 2026 02:18
@sleberknight sleberknight linked an issue Apr 30, 2026 that may be closed by this pull request
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.

Consider adding AssertJ-style fluent assertions test utility

1 participant