[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 10:19:42 EDT 2008
[ http://jira.jboss.com/jira/browse/JBRULES-1525?page=comments#action_12404452 ]
Nicolas Heron commented on JBRULES-1525:
----------------------------------------
OK,
if I may propose something (and then I stop),
in my patch instead of
+ private static final String DEFAULT_COUNTRY = "US";
+ private static final String DEFINE_COUNTRY = getDefaultContry();
+ private static final String DEFAULT_LANGUAGE = "en";
+ private static final String DEFINE_LANGUAGE = getDefaultLanguage();
do
+ private static final String DEFAULT_COUNTRY = Locale.getDefault().getCountry();
+ private static final String DEFINE_COUNTRY = getDefaultContry();
+ private static final String DEFAULT_LANGUAGE = Locale.getDefault().getLanguage();
+ private static final String DEFINE_LANGUAGE = getDefaultLanguage();
So for your drools tests, you should put
System.setProperty( "drools.defaultlanguage", "en" );
System.setProperty( "drools.defaultcountry" ,"US" );
And it woks
and you keep your format string as I already have
> 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