[jboss-jira] [JBoss JIRA] (JBRULES-2834) TimerAndCalendarTest will fail 4 tests on non english environments

Geoffrey De Smet (JIRA) jira-events at lists.jboss.org
Tue Apr 3 12:18:48 EDT 2012


     [ https://issues.jboss.org/browse/JBRULES-2834?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Geoffrey De Smet resolved JBRULES-2834.
---------------------------------------

         Assignee: Geoffrey De Smet  (was: Mark Proctor)
    Fix Version/s: 5.4.0.CR1
       Resolution: Done


https://github.com/droolsjbpm/drools/commit/4d3832c677aef503d1d0c3d2d3de7821a1cfdeee
                
> TimerAndCalendarTest will fail 4 tests on non english environments
> ------------------------------------------------------------------
>
>                 Key: JBRULES-2834
>                 URL: https://issues.jboss.org/browse/JBRULES-2834
>             Project: Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: drools-compiler
>    Affects Versions: 5.2.0.M1
>         Environment: Windows XP 32bit *ESP*, JDK 1.6.0_21
>            Reporter: Burkhard Vogel
>            Assignee: Geoffrey De Smet
>            Priority: Minor
>             Fix For: 5.4.0.CR1
>
>         Attachments: org.drools.integrationtests.TimerAndCalendarTest.txt, TimerAndCalendarTest.diff
>
>
> When running the mvn install target on a non English system the following test will fail
> - testCalendarsWithIntervalsAndStartAndEnd
> - testCalendarsWithIntervalsAndStartAndLimit
> - testCalendarsWithCronAndStartAndEnd
> - testCalendarsWithCronAndStartAndLimit
> All these use dates like 03-JAN-2010 in the internal rule definition with will not work in countries where there does not exist a month starting with JAN, for instance in Spanish that would be ENE (from enero) and the test result spills out a date format exception.
> These can be alleviated by running the command with two parameters (-Ddrools.defaultcountry=US -Ddrools.defaultlanguage=en) but still the attached patch has to be applied for four other language specific dates within the test code. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list