apex-enterprise-patterns / fflib-apex-common-samplecode

Samples application illustrating the Apex Enterprise Patterns library
BSD 3-Clause "New" or "Revised" License
205 stars 105 forks source link

Mocks.cls using deprecated mockNonVoidMethod & mockVoidMethod method #11

Closed JAertgeerts closed 8 years ago

JAertgeerts commented 8 years ago

Mocks: line 18, column 31: Method does not exist or incorrect signature: [fflib_ApexMocks].mockNonVoidMethod(Mocks.OpportunitiesSelector, String, List)

Needs updating to the more recent version of the fflib_ApexMocks: requiring following parameters: public Object mockNonVoidMethod(Object mockInstance, String methodName, List<Type> methodArgTypes, List<Object> methodArgValues)

While only receiving the deprecated version: public Object mockNonVoidMethod(Object mockInstance, String methodName, Object methodArg)

This is also causing the deployment of this repository to fail.

JAertgeerts commented 8 years ago

Extended to include deprecated mockVoidMethod public void mockVoidMethod(Object mockInstance, String methodName, List<Type> methodArgTypes, List<Object> methodArgValues) as opposed to the currently used: public void mockVoidMethod(Object mockInstance, String methodName, Object methodArg)

afawcett commented 8 years ago

THanks, merged! 👍