System.Test.CreateStub method returns NULL in Apex Tests
Last updated 2017-08-16 ·Reference W-4203564 ·Reported By 18 users
If we build a test class using Mocking Framework with the Stub API and utilize Test.createStub, the method returns NULL reference
- Create a new Apex classes and test classes from the code in the developer doc:
- Run the test class DateFormatterTest
- We will get an error message Attempt to dereference a NULL object
Is it Fixed?
Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.