Croway opened a new pull request, #2035:
URL: https://github.com/apache/camel-spring-boot/pull/2035

   ## Summary
   
   Ten tests in `camel-jira-starter` have been failing on Camel-Spring-Boot 
Daily since #399 with:
   
   ```
   NullPointerException: Cannot invoke 
"io.atlassian.util.concurrent.Promise.claim()"
   because the return value of "IssueRestClient.addComment(...)" is null
   ```
   
   apache/camel@064fff3 (CAMEL-25544) made the camel-jira write producers 
(`addComment`, `addIssueLink`, `addWorkLog`, `attach`, `deleteIssue`, 
`transitionIssue`, `watchers`) call `claim()` on the `Promise` returned by 
`IssueRestClient`, so that a request Jira rejects fails the exchange. The 
starter tests mocked those methods with answers returning `null`.
   
   This change ports the test fix from the same upstream commit: the mocks now 
return `Promises.promise(null)` (typed as `Answer<Promise<Void>>`).
   
   ## Test plan
   
   - [x] `mvn verify` in `components-starter/camel-jira-starter`: 32 tests 
pass, against a `camel-jira` 4.23.0-SNAPSHOT that includes CAMEL-25544
   
   _Claude Code (Opus 5.5) on behalf of Federico Mariani_


-- 
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]

Reply via email to