force-di icon indicating copy to clipboard operation
force-di copied to clipboard

di_BindingTest.Bob does not implement the Provider Interface

Open Finniusday opened this issue 2 years ago • 0 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

Finniusday avatar Sep 23 '21 13:09 Finniusday