I have an APEX controller that writes to a Big Object. How do I unit this? During an insert operation insert I get an error:
Unsupported External Object Operations.
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.
Sign up to join this communityI found these two references in the documentation for Big Objects:
Any Apex tests that use DML calls will fail and potentially insert bad data into the target big object. This data won’t be deletable. To test DML calls, use a mocking framework with the Apex stub API to contain calls to the target big object.
So it appears you will need to Mock the Big Objects for your test cases.