fflib-apex-common
fflib-apex-common copied to clipboard
Make sure method return non-null values
After upgrading my projects to the latest fflib-apex-common, where some methods were moved from fflib-apex-extensions to fflib-apex-common, I found that a high number of unit-tests were failing.
Then I found out that the getIdFieldValues
and getStringFieldValues
were suddenly also returning null values, which makes no sense. This fix will make sure these methods always return the values and omit the nulls
@wimvelzeboer, can you also please check fflib_SObjectsTest.itShouldReturnFieldValues
test method. It failed in the CI run for this PR
@wimvelzeboer, the fflib_SObjectsTest.itShouldReturnFieldValues()
test method is still failing with the following error
System.AssertException: Assertion Failed
Class.fflib_SObjectsTest.itShouldReturnFieldValues: line 146, column 1
Can you take a look at this please?