You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hivemind.apache.org by ji...@apache.org on 2004/06/14 23:11:09 UTC

[jira] Created: (HIVEMIND-7) TestNumericTranslators not working with locale using comma as decimal point

Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/HIVEMIND-7

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: HIVEMIND-7
    Summary: TestNumericTranslators not working with locale using comma as decimal point
       Type: Bug

     Status: Unassigned
   Priority: Minor

    Project: HiveMind
 Components: 
             framework
   Versions:
             1.0

   Assignee: 
   Reporter: Achim Hügen

    Created: Mon, 14 Jun 2004 2:11 PM
    Updated: Mon, 14 Jun 2004 2:11 PM

Description:
testDoubleLow and testDoubleHigh compare the raised exception with hardcoded message text:

"Value 208.3 is greater than maximum value 207.5"

whereas the exception is generated like this on a german system:

"Value 208.3 is greater than maximum value 207,5"

which btw. is inconsistent, since the first number uses a point and the second a comma.

I will attach a patch, that fixes this issue by generating the comparison text using MessageFormat.
I would recommend to use class RulesMessages for generating all the comparison messages, but its not visible from the test unit.
This would make the test more independent of changes in the message resources.





---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-dev-help@jakarta.apache.org


[jira] Closed: (HIVEMIND-7) TestNumericTranslators not working with locale using comma as decimal point

Posted by hi...@jakarta.apache.org.
Message:

   The following issue has been closed.

   Resolver: Howard M. Lewis Ship
       Date: Fri, 25 Jun 2004 1:57 PM

I agree; the unit tests should be moved to the same package, so that the RuleMessages class is visible. Live and learn. Your patch gets the job done in the meantime.
---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/HIVEMIND-7

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: HIVEMIND-7
    Summary: TestNumericTranslators not working with locale using comma as decimal point
       Type: Bug

     Status: Closed
   Priority: Minor
 Resolution: FIXED

    Project: HiveMind
 Components: 
             framework
   Fix Fors:
             1.0
   Versions:
             1.0

   Assignee: Howard M. Lewis Ship
   Reporter: Achim Hügen

    Created: Mon, 14 Jun 2004 2:11 PM
    Updated: Fri, 25 Jun 2004 1:57 PM

Description:
testDoubleLow and testDoubleHigh compare the raised exception with hardcoded message text:

"Value 208.3 is greater than maximum value 207.5"

whereas the exception is generated like this on a german system:

"Value 208.3 is greater than maximum value 207,5"

which btw. is inconsistent, since the first number uses a point and the second a comma.

I will attach a patch, that fixes this issue by generating the comparison text using MessageFormat.
I would recommend to use class RulesMessages for generating all the comparison messages, but its not visible from the test unit.
This would make the test more independent of changes in the message resources.





---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-dev-help@jakarta.apache.org


[jira] Commented: (HIVEMIND-7) TestNumericTranslators not working with locale using comma as decimal point

Posted by hi...@jakarta.apache.org.
The following comment has been added to this issue:

     Author: Achim Hügen
    Created: Sun, 11 Jul 2004 6:40 AM
       Body:
I fear, the changes from DoubleTranslator und RulesMessages
are missing, so the problem is still there.
Please look at the patch file for the missing code.

Isn't it possible to reopen a bug?

---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/HIVEMIND-7?page=comments#action_36599

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/HIVEMIND-7

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: HIVEMIND-7
    Summary: TestNumericTranslators not working with locale using comma as decimal point
       Type: Bug

     Status: Closed
   Priority: Minor
 Resolution: FIXED

    Project: HiveMind
 Components: 
             framework
   Fix Fors:
             1.0
   Versions:
             1.0

   Assignee: Howard M. Lewis Ship
   Reporter: Achim Hügen

    Created: Mon, 14 Jun 2004 2:11 PM
    Updated: Sun, 11 Jul 2004 6:40 AM

Description:
testDoubleLow and testDoubleHigh compare the raised exception with hardcoded message text:

"Value 208.3 is greater than maximum value 207.5"

whereas the exception is generated like this on a german system:

"Value 208.3 is greater than maximum value 207,5"

which btw. is inconsistent, since the first number uses a point and the second a comma.

I will attach a patch, that fixes this issue by generating the comparison text using MessageFormat.
I would recommend to use class RulesMessages for generating all the comparison messages, but its not visible from the test unit.
This would make the test more independent of changes in the message resources.





---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-dev-help@jakarta.apache.org


[jira] Updated: (HIVEMIND-7) TestNumericTranslators not working with locale using comma as decimal point

Posted by ji...@apache.org.
The following issue has been updated:

    Updater: Achim Hügen (mailto:ahuegen@gmx-topmail.de)
       Date: Mon, 14 Jun 2004 2:13 PM
    Changes:
             Attachment changed to jakarta-hivemind-diff-2004-06-14-22-57-44
    ---------------------------------------------------------------------
For a full history of the issue, see:

  http://issues.apache.org/jira/browse/HIVEMIND-7?page=history

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/HIVEMIND-7

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: HIVEMIND-7
    Summary: TestNumericTranslators not working with locale using comma as decimal point
       Type: Bug

     Status: Unassigned
   Priority: Minor

    Project: HiveMind
 Components: 
             framework
   Versions:
             1.0

   Assignee: 
   Reporter: Achim Hügen

    Created: Mon, 14 Jun 2004 2:11 PM
    Updated: Mon, 14 Jun 2004 2:13 PM

Description:
testDoubleLow and testDoubleHigh compare the raised exception with hardcoded message text:

"Value 208.3 is greater than maximum value 207.5"

whereas the exception is generated like this on a german system:

"Value 208.3 is greater than maximum value 207,5"

which btw. is inconsistent, since the first number uses a point and the second a comma.

I will attach a patch, that fixes this issue by generating the comparison text using MessageFormat.
I would recommend to use class RulesMessages for generating all the comparison messages, but its not visible from the test unit.
This would make the test more independent of changes in the message resources.





---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-dev-help@jakarta.apache.org


[jira] Assigned: (HIVEMIND-7) TestNumericTranslators not working with locale using comma as decimal point

Posted by hi...@jakarta.apache.org.
Message:

   The following issue has been re-assigned.

   Assignee: Howard M. Lewis Ship (mailto:hlship@apache.org)
---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/HIVEMIND-7

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: HIVEMIND-7
    Summary: TestNumericTranslators not working with locale using comma as decimal point
       Type: Bug

     Status: Open
   Priority: Minor

    Project: HiveMind
 Components: 
             framework
   Versions:
             1.0

   Assignee: Howard M. Lewis Ship
   Reporter: Achim Hügen

    Created: Mon, 14 Jun 2004 2:11 PM
    Updated: Fri, 25 Jun 2004 1:53 PM

Description:
testDoubleLow and testDoubleHigh compare the raised exception with hardcoded message text:

"Value 208.3 is greater than maximum value 207.5"

whereas the exception is generated like this on a german system:

"Value 208.3 is greater than maximum value 207,5"

which btw. is inconsistent, since the first number uses a point and the second a comma.

I will attach a patch, that fixes this issue by generating the comparison text using MessageFormat.
I would recommend to use class RulesMessages for generating all the comparison messages, but its not visible from the test unit.
This would make the test more independent of changes in the message resources.





---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-dev-help@jakarta.apache.org