[ 
https://issues.apache.org/jira/browse/CAMEL-27869?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen updated CAMEL-27869:
--------------------------------
    Description: 
Found while improving the option descriptions of camel-test-citrus for 
CAMEL-23832 (commit 
https://github.com/apache/camel/commit/1aaff12f7925110d68d6576bdc6977b75773cc4a,
 pull request https://github.com/apache/camel/pull/31146).
These are separate problems of the component; the descriptions change only 
documents the current behavior.

h4. 1. log and reportGroup have no effect
{{CitrusComponent.createEndpoint}} does not do what 
MockComponent.createEndpoint does: the component log option is never copied 
(setLog missing), and reportGroup is set as a plain int without creating the 
ThroughputLogger reporter.
Proposed change: reuse the MockComponent logic.

h4. 2. A missing validation module is never reported
{{CitrusValidationProcessor.performCitrusValidation}}: the "No Citrus message 
validator found" check cannot be reached, because findMessageValidators(type, 
message) falls back to DefaultTextEqualsMessageValidator; so messageType=json 
without citrus-validation-json silently compares the bodies as text.
Proposed change: call findMessageValidators(type, message, true), or drop the 
dead check.


_Claude Code on behalf of davsclaus_

  was:
Found while improving the option descriptions of camel-test-citrus for 
CAMEL-23832 (pull request https://github.com/apache/camel/pull/31146).
These are separate problems of the component; the descriptions change only 
documents the current behavior.

h4. 1. log and reportGroup have no effect
{{CitrusComponent.createEndpoint}} does not do what 
MockComponent.createEndpoint does: the component log option is never copied 
(setLog missing), and reportGroup is set as a plain int without creating the 
ThroughputLogger reporter.
Proposed change: reuse the MockComponent logic.

h4. 2. A missing validation module is never reported
{{CitrusValidationProcessor.performCitrusValidation}}: the "No Citrus message 
validator found" check cannot be reached, because findMessageValidators(type, 
message) falls back to DefaultTextEqualsMessageValidator; so messageType=json 
without citrus-validation-json silently compares the bodies as text.
Proposed change: call findMessageValidators(type, message, true), or drop the 
dead check.


_Claude Code on behalf of davsclaus_


> camel-test-citrus: the component log and reportGroup options do nothing, a 
> missing validation module is never reported
> ----------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-27869
>                 URL: https://issues.apache.org/jira/browse/CAMEL-27869
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-test
>            Reporter: Claus Ibsen
>            Priority: Minor
>             Fix For: 4.25.0
>
>
> Found while improving the option descriptions of camel-test-citrus for 
> CAMEL-23832 (commit 
> https://github.com/apache/camel/commit/1aaff12f7925110d68d6576bdc6977b75773cc4a,
>  pull request https://github.com/apache/camel/pull/31146).
> These are separate problems of the component; the descriptions change only 
> documents the current behavior.
> h4. 1. log and reportGroup have no effect
> {{CitrusComponent.createEndpoint}} does not do what 
> MockComponent.createEndpoint does: the component log option is never copied 
> (setLog missing), and reportGroup is set as a plain int without creating the 
> ThroughputLogger reporter.
> Proposed change: reuse the MockComponent logic.
> h4. 2. A missing validation module is never reported
> {{CitrusValidationProcessor.performCitrusValidation}}: the "No Citrus message 
> validator found" check cannot be reached, because findMessageValidators(type, 
> message) falls back to DefaultTextEqualsMessageValidator; so messageType=json 
> without citrus-validation-json silently compares the bodies as text.
> Proposed change: call findMessageValidators(type, message, true), or drop the 
> dead check.
> _Claude Code on behalf of davsclaus_



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to