MultiStaticResourceCalloutMock and StaticResourceCalloutMock not declared to implement HttpCalloutMock

Issue #1696 resolved
Adam Lewis created an issue

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)

  1. Scott Wells repo owner

    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.

  2. Scott Wells repo owner

    Delivered in As noted previously, you'll need to regenerate your OST to pick up the change.

  3. Log in to comment