yesamer commented on code in PR #6320:
URL:
https://github.com/apache/incubator-kie-drools/pull/6320#discussion_r2055443248
##########
kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/ReplaceFunctionTest.java:
##########
@@ -98,6 +98,20 @@ private static Object[][]
invokeWithoutFlagsPatternTestData() {
};
}
+ @ParameterizedTest
+ @MethodSource("invokeWithXmlCharacterReferencesData")
+ void invokeWithXmlCharacterReferencesTest(String input, String pattern,
String replacement, String expectedResult) {
+ FunctionTestUtil.assertResult(replaceFunction.invoke(input, pattern,
replacement), expectedResult);
+ }
+
+ private static Object[][] invokeWithXmlCharacterReferencesData() {
+ return new Object[][] {
+ { "abc&123", "abc", "123", "123&123" },
+ { "abc'123", "abc'", "123", "123123" },
+ { "abc\"123", "abc\"", "123<>", "123<>123" }
+ };
+ }
+
Review Comment:
Done
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]