AthiraHari77 commented on code in PR #6303:
URL: 
https://github.com/apache/incubator-kie-drools/pull/6303#discussion_r2038927356


##########
kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/DateTimeFunctionTest.java:
##########
@@ -124,4 +127,45 @@ void invokeParamTemporalOffsetTime() {
                         OffsetTime.of(10, 6, 20, 0, ZoneOffset.UTC)),
                 ZonedDateTime.of(2017, 6, 12, 10, 6, 20, 0, ZoneOffset.UTC));
     }
+
+    @Test
+    void invokeParamStringDateTimeZone() {
+        
FunctionTestUtil.assertResult(dateTimeFunction.invoke(LocalDate.of(2024, 12, 
24),
+                        LocalTime.of(23, 59, 0),
+                        "America/Costa_Rica"),
+                ZonedDateTime.of(2024, 12, 24, 23, 59, 0, 0, 
ZoneId.of("America/Costa_Rica")));
+        FEELFnResult<TemporalAccessor> expectedResult = 
dateTimeFunction.invoke(LocalDate.of(2024, 12, 24), LocalTime.of(23, 59, 0), 
"America/Costa_Rica");
+        FEELFnResult<TemporalAccessor> retrievedResult = 
dateTimeFunction.invoke("2024-12-24T23:59:00@America/Costa_Rica");
+        
assertThat(expectedResult.getOrElse(null)).isEqualTo(retrievedResult.getOrElse(null));
+    }

Review Comment:
   @jomarko I have updated the test case with the mentioned scenario where 
timezone is "Z"



-- 
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]

Reply via email to