[jboss-jira] [JBoss JIRA] Commented: (JBRULES-1525) MVELCalendarCoercionTest and MVELDateCoercionTest do not passed on 4.0.x
Nicolas Heron (JIRA)
jira-events at lists.jboss.org
Tue Mar 25 09:51:51 EDT 2008
[ http://jira.jboss.com/jira/browse/JBRULES-1525?page=comments#action_12404434 ]
Nicolas Heron commented on JBRULES-1525:
----------------------------------------
No, it is not the just the date format but how the locale are defined.
If you use a date variable and compare it to '10-sept-2008' it will only work only if you are in your operating system using "US" as a country and "en as a language (I guess the java JVM takes the parameters)
So my proposition is in the code by default to expressively use "US" and "en" and if the user of drools wants,
through the two system properties,he can change.
But in this case, in all string constant in drl files, the user must change all strings.
In my patch, it works like this : by default we use "US","en" (so all your drools tests work) and if needed, use the system properties to modify those two constants.
Am I clear ?
> MVELCalendarCoercionTest and MVELDateCoercionTest do not passed on 4.0.x
> ------------------------------------------------------------------------
>
> Key: JBRULES-1525
> URL: http://jira.jboss.com/jira/browse/JBRULES-1525
> Project: JBoss Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 4.0.5
> Environment: Maven 2.0.8, Java 5, Linux Mandriva 2008.0
> Reporter: Nicolas Heron
> Assigned To: Mark Proctor
> Fix For: 4.0.6
>
> Attachments: DateFactory.java.patch, export.txt, export2.txt, MVELCalendarCoercionTest.patch, MVELDateCoercionTest.patch, surefire-reports.tar.gz
>
>
> I took the latest 4.0.x version and did everything needed to build the solution but
> When using maven, I always have the same errors in those 2 tests :
> testString(org.drools.base.mvel.MVELCalendarCoercionTest)
> testString(org.drools.base.mvel.MVELDateCoercionTest)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list