Skip to content

Commit

Permalink
Fixed: Update end bracket detection en groovy scriplet (OFBIZ-13178)
Browse files Browse the repository at this point in the history
Fixed the long size line issue on introduced tests.
  • Loading branch information
nmalin committed Nov 19, 2024
1 parent 6393e21 commit b97957d
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,10 @@ public void testEverything() {
fseTest("UEL integration: missing", "${noList[0]}", testMap, null, null, "", null, false);
fseTest("Escaped expression", "This is an \\${escaped} expression", testMap, "This is an ${escaped} expression", false);
fseTest("Escaped(groovy) expression", "This is an \\${groovy:escaped} expression", testMap, "This is an ${groovy:escaped} expression", false);
fseTest("Bracket en groovy", "This is a groovy ${groovy: if (true) {return 'bracket'}} expression", testMap, "This is a groovy bracket expression", false);
fseTest("Bracket en groovy again", "This is a groovy ${groovy: if (true) {if (true) {return 'with 2 brackets'}}} expression", testMap, "This is a groovy with 2 brackets expression", false);
fseTest("Bracket en groovy", "This is a groovy ${groovy: if (true) {return 'bracket'}} expression", testMap,
"This is a groovy bracket expression", false);
fseTest("Bracket en groovy again", "This is a groovy ${groovy: if (true) {if (true) {return 'with 2 brackets'}}} expression", testMap,
"This is a groovy with 2 brackets expression", false);

// TODO: Find a better way to setup or handle the big decimal value. If new ones are not instantiated in the test
// it fails because of the comparison between object pointers..
Expand Down

0 comments on commit b97957d

Please sign in to comment.