-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
CustOrder produce toString with localized total value string representation:
@Override public String toString() { return customerId + ":" + orderId + ":" + new DecimalFormat("##.00").format(total); }
but in the assertion is used constant value string representation with dot as decimal separator (88.80) In the countries when decimal separator is different from dot this assertion is false.
assertEquals("[ANATR:10308:88.80]", orders.toString());
suggested simple solution:
assertEquals("[ANATR:10308:"+ new DecimalFormat("##.00").format(88.80) + "]", orders.toString());
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels