db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel John Debrunner (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DERBY-2304) Convert derbynet/callable.java to junit
Date Wed, 07 Feb 2007 23:27:05 GMT

    [ https://issues.apache.org/jira/browse/DERBY-2304?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12471149

Daniel John Debrunner commented on DERBY-2304:

On the assertDecimalEquals() how were you comparing the string to the BigDecimal?
This assertDecimalEquals("OUT 2", "33.3330", cs.getBigDecimal(2));  is possible but it might
need careful definition as to what equality means.
basically the same numerical value or the same numerical value with the same scale. E.g.


are the same for BigDecimal.compareTo() but are not for BigDecimal.equals().

Maybe have two methods ...

 assertDecimalSameValue  (uses compareTo)
 assertDecimalEquals (uses equals)


> Convert derbynet/callable.java to junit
> ---------------------------------------
>                 Key: DERBY-2304
>                 URL: https://issues.apache.org/jira/browse/DERBY-2304
>             Project: Derby
>          Issue Type: Improvement
>          Components: Test
>            Reporter: Jean T. Anderson
>         Assigned To: Jean T. Anderson
>            Priority: Minor
>         Attachments: derby-2304-preview-2.diff, derby-2304-preview.diff
> Convert the derbynet.callable.java test to the junit framework.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message