Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SamplesTest method testSelectManyCompoundFrom2() #34

Open
volwec opened this issue Feb 8, 2018 · 0 comments
Open

SamplesTest method testSelectManyCompoundFrom2() #34

volwec opened this issue Feb 8, 2018 · 0 comments

Comments

@volwec
Copy link

volwec commented Feb 8, 2018

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());

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant