Skip to content

test(client): improve coverage of DoclingServeClientException - #593

Merged
edeandrea merged 2 commits into
docling-project:mainfrom
seanJosephFitzpatrick:main
Jul 16, 2026
Merged

test(client): improve coverage of DoclingServeClientException#593
edeandrea merged 2 commits into
docling-project:mainfrom
seanJosephFitzpatrick:main

Conversation

@seanJosephFitzpatrick

Copy link
Copy Markdown
Contributor

Summary

Adds full unit test coverage for DoclingServeClientException

Changes

New Test Class

File Class Under Test # Tests
DoclingServeClientExceptionTests DoclingServeClientException 5

Coverage Highlights

DoclingServeClientException — covers all three constructor variants:

  • constructWithCause — verifies message is taken from the cause, cause is retained, and default status code/response body values are set.
  • constructWithNullCause — verifies fallback message "An error occurred" is used when cause is null.
  • constructWithCauseAndMessage — verifies an explicit message overrides the cause message.
  • constructWithStatusCodeAndResponseBody — verifies message, status code, response body, and null cause.
  • constructWithStatusCodeAndNullResponseBody — verifies message, status code, and null response body are all propagated correctly.

@seanJosephFitzpatrick seanJosephFitzpatrick changed the title test(docling-serve-client): improve coverage of DoclingServeClientException test(client): improve coverage of DoclingServeClientException Jul 16, 2026
Signed-off-by: SEAN JOSEPH FITZPATRICK <9217947+seanJosephFitzpatrick@users.noreply.github.com>
…CodeAndNullResponseBody

Signed-off-by: SEAN JOSEPH FITZPATRICK <9217947+seanJosephFitzpatrick@users.noreply.github.com>
@edeandrea

Copy link
Copy Markdown
Contributor

Thanks @seanJosephFitzpatrick ! Once the tests run to success this will merge!

@edeandrea
edeandrea enabled auto-merge (squash) July 16, 2026 19:24
@github-actions

Copy link
Copy Markdown

:java_duke: JaCoCo coverage report

Overall Project 47.41% 🔴

There is no coverage information present for the Files changed

@github-actions

github-actions Bot commented Jul 16, 2026

Copy link
Copy Markdown
TestsPassed ✅SkippedFailed
Gradle Test Results (all modules & JDKs)1768 ran1768 passed0 skipped0 failed
TestResult
No test annotations available

@github-actions

Copy link
Copy Markdown

HTML test reports are available as workflow artifacts (zipped HTML).

• Download: Artifacts for this run

@github-actions

Copy link
Copy Markdown

HTML test reports are available as workflow artifacts (zipped HTML).

• Download: Artifacts for this run

@edeandrea
edeandrea disabled auto-merge July 16, 2026 20:02
@edeandrea
edeandrea merged commit c73c4c7 into docling-project:main Jul 16, 2026
27 checks passed
@edeandrea

Copy link
Copy Markdown
Contributor

@all-contributors add @seanJosephFitzpatrick for test

@allcontributors

Copy link
Copy Markdown
Contributor

@edeandrea

I've put up a pull request to add @seanJosephFitzpatrick! 🎉

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