MultiStaticResourceCalloutMock and StaticResourceCalloutMock not declared to implement HttpCalloutMock
Issue #1696
resolved
The built-in utility implementations of the HttpCalloutMock
interface: MultiStaticResourceCalloutMock
and StaticResourceCalloutMock
are not declared as such in the OST. This results in errors in the IDE even though the code is valid and runs on-platform. e.g.
HttpCalloutMock myMock = new MultiStaticResourceCalloutMock();
Produces an error Illegal assignment from System.MultiStaticResourceCalloutMock to System.HttpCalloutMock
even though this code can be deployed, runs, and works as expected.
Comments (3)
-
repo owner -
repo owner - changed status to resolved
Delivered in 2.1.3.7. As noted previously, you'll need to regenerate your OST to pick up the change.
-
reporter Terrific! This is working for me now, thanks for the quick turnaround.
- Log in to comment
Fix committed for inclusion in the next build:
You will need to regenerate your OST after installing that build for these changes to be available.