Skip to content

WW-3720 test(core): cover comma-delimited interceptor params split across lines - #2040

Merged
lukaszlenart merged 2 commits into
mainfrom
test/WW-3720-multiline-comma-param
Oct 17, 2026
Merged

lukaszlenart merged 2 commits into
mainfrom
test/WW-3720-multiline-comma-param

Conversation

@lukaszlenart

Copy link
Copy Markdown
Member

Relates to WW-3720

Summary

WW-3720 asks for a <list><element>…</element></list> form for collection-valued params such as excludeMethods. The readability need behind it is already met: a comma-delimited value can be split across lines inside one <param>, because both XmlHelper.getContent and TextParseUtil.commaDelimitedStringToSet trim whitespace.

<param name="excludeMethods">
    input,
    back,
    cancel
</param>

This PR is test-only. It pins that behaviour end to end (XML file → configuration → built DefaultWorkflowInterceptor), both on the interceptor definition and on an interceptor-ref override, so the multi-line form stays supported.

A real <list> element isn't proposed: params are Map<String, String> throughout the config model (XML, InterceptorConfig/ActionConfig, DefaultInterceptorFactory, lazy params, Convention's @InterceptorRef(params = …)), and the comma-string convention is shared by many interceptors across core and plugins.

Verification

  • XmlConfigurationProviderInterceptorsTest: 5/5 pass on current code.
  • With .map(String::trim) removed from commaDelimitedStringToSet, the new test fails with expected:<[cancel, back, input]> but was:<[input,\n back,\n cancel]>, so it covers the trimming path.

🤖 Generated with Claude Code

lukaszlenart and others added 2 commits October 17, 2026 11:02
…ross lines

Pins that a multi-line <param> value such as excludeMethods is parsed
into separate method names, both on the interceptor definition and on
an interceptor-ref override.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@lukaszlenart
lukaszlenart marked this pull request as ready for review October 17, 2026 13:08
@sonarqubecloud

Copy link
Copy Markdown

@lukaszlenart
lukaszlenart merged commit 83864b1 into main Oct 17, 2026
8 checks passed
@lukaszlenart
lukaszlenart deleted the test/WW-3720-multiline-comma-param branch October 17, 2026 13:33
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.

1 participant