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:

    Issue_1696.png

    You will need to regenerate your OST after installing that build for these changes to be available.

  2. Scott Wells repo owner

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

  3. Log in to comment