db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jean T. Anderson (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DERBY-2304) Convert derbynet/callable.java to junit
Date Thu, 08 Feb 2007 00:03:05 GMT

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

Jean T. Anderson commented on DERBY-2304:

Dan asked:
> On the assertDecimalEquals() how were you comparing the string to the BigDecimal? 

I goofed -- I was moving too quickly and didn't pay close enough attention to your assertDecimalEquals()

I did this, which was silly:
    assertEquals("OUT 2", "33.3330", cs.getBigDecimal(2));

This code passes on 1.4.2, but it can't be reliable:
   assertEquals("OUT 2", "33.3330", cs.getBigDecimal(2).toString());

I'll slow down and work on a real decimal comparison solution. Thanks for all the help!

> 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-3.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