Skip to content

Commit

Permalink
[private-bamoe-issues#2091] Fix ActionFieldValue clone
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriele-Cardosi committed Jun 13, 2024
1 parent 9318817 commit 4bb83cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ public void visitActionCallMethod(final ActionCallMethod action) {
final ActionFieldFunction afvClone = new ActionFieldFunction();
afvClone.setMethod(((ActionFieldFunction) fieldValue).getMethod());
afvClone.setField(fieldValue.getField());
afvClone.setNature(BaseSingleFieldConstraint.TYPE_LITERAL);
afvClone.setNature(fieldValue.getNature());
afvClone.setType(fieldValue.getType());
String value = fieldValue.getValue();
String templateKeyValue = rowDataProvider.getTemplateKeyValue(value);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1384,7 +1384,7 @@ public void testActionCallWithTemplateKeys() {
"when\n" +
" x : Context( )\n" +
"then\n" +
" x.add( \"test\" );\n" +
" x.add( @{test} );\n" +
"end\n";

assertEqualsIgnoreWhitespace(expected,
Expand Down

0 comments on commit 4bb83cb

Please sign in to comment.