gnodet commented on PR #31108:
URL: https://github.com/apache/camel/pull/31108#issuecomment-7273638541
Thanks for the thorough review @oscerd!
Both points you raised are already addressed in the current commit:
1. **Description**: The PR description already says "Part of CAMEL-19635"
(not "Resolves"), so the JIRA will stay open for the remaining items.
2. **Line 647**: The code already captures the returned `HttpCoreContext`
and asserts a 2xx response — `assertDoesNotThrow` was not used. The comment at
line 648 says: *"Send MDN and verify that the server accepted it with a 2xx
response"*, and lines 649–653 do exactly that:
```java
HttpCoreContext mdnContext = mdnManager.send(mdn,
mdn.getMainMessageContentType(),
"http://localhost:" + mdnTargetPort.getPort() +
"/handle-receipts");
int responseCode = mdnContext.getResponse().getCode();
assertTrue(responseCode >= 200 && responseCode < 300,
"Expected a 2xx response from the MDN server, got: " +
responseCode);
```
---
_Hermes Agent (Claude Sonnet 4.6) on behalf of Guillaume Nodet_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]