apex-enterprise-patterns / force-di

Generic DI library with support for Apex, Triggers, Visualforce and Lightning

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

di_BindingTest.Bob does not implement the Provider Interface

Finniusday opened this issue · comments

Hi there folks.

We have not updated our common library in a while so this just may be an interconnected issue, but I am getting a weird error when creating a new version of the ForceDI library.

I have updated our local repositories (in bitbucket) with the latest code from the common github library. ApexMocks compiled and updated without issue. When I move to ForceDI to update and create a new version, I run it with the --codecoverage parameter and get this error:

Apex Test Failure: Class.di_Binding.ApexBinding.newInstance: line 413, column 1
Class.di_Binding.getInstance: line 82, column 1
Class.di_Binding.getInstance: line 70, column 1
Class.di_BindingTest.givenApexBindingWhenGetNewInstanceThenNewInstance: line 53, column 1 di_Binding.BindingException: Apex binding di_BindingTest.Bob implementation di_BindingTest.Bob does not implement the Provider interface.

Any ideas on what this might be? Is the Provider interface in another library or did I screw up on my steps updating this library?

Thank you.
Eric