You need to sign in to do that
Don't have an account?
Topalovich
Test.loadData causing compile errors in Apex unit tests and @testSetup methods
I make heavy use of CSV files as Static Resources for loading data for unit tests. Recently, and only in one specific sandbox instance, I have started to receive the following error at compile:
Method does not exist or incorrect signature: Test.loadData(Schema.SObjectType, String)
This happens on an reference to Test.loadData, and it is happening in a test class that had previously compiled and was deployed to production. Even if I simply just open and then save the test class without making any changes, I get a compile error on the Test.loadData methods.
The sandbox instance is cs14. The test class API version is 33, but I get the error in API version 34 as well. I have received this error in Developer Console, the UI, and the Force.com IDE.
Any thoughts?
Mike
Method does not exist or incorrect signature: Test.loadData(Schema.SObjectType, String)
This happens on an reference to Test.loadData, and it is happening in a test class that had previously compiled and was deployed to production. Even if I simply just open and then save the test class without making any changes, I get a compile error on the Test.loadData methods.
The sandbox instance is cs14. The test class API version is 33, but I get the error in API version 34 as well. I have received this error in Developer Console, the UI, and the Force.com IDE.
Any thoughts?
Mike
All Answers
[1] http://trust.salesforce.com/trust/instances/cs14.json