fflib-apex-common icon indicating copy to clipboard operation
fflib-apex-common copied to clipboard

fflib_SObjectSelectorTest Error: 'Assertion Failed: Expected: 12345.67, Actual: 9117.25'

Open adayIvey opened this issue 1 year ago • 13 comments
trafficstars

Describe the bug when I run the tests in 'fflib_SObjectSelectorTest Class' I get the following error.

System.AssertException: Assertion Failed: Expected: 12345.67, Actual: 9117.25 CODE LINE: system.assertEquals(12345.67,result[0].AnnualRevenue);

I think this has to do with our org being multi currency and there is a conversion being applied on all currency fields in the Account object

To Reproduce

Run test 'fflib_SObjectSelectorTest' from Developer Console in salesforce in a multi currency org

Expected behavior All tests in class 'fflib_SObjectSelectorTest' pass and can handle currency correctly

Version I just installed the latest version

adayIvey avatar Jun 12 '24 14:06 adayIvey