I am trying to import some test data before tests with a csv file and the Test.load() method. I am not being able to figure out how to declare the load method for the RecordTypes I have in a file. Here is what I have:
static testMethod void init() {
List<sObject> recordTypes = Test.loadData(?????, 'esb_record_type_test_data');
List<sObject> accounts = Test.loadData(Account.sObjectType, 'esb_account_test_data');
List<sObject> contacts = Test.loadData(Contact.sObjectType, 'esb_contact_test_data');
List<sObject> customers = Test.loadData(Customer__c.sObjectType, 'esb_customer_test_data');
}
What should I declare in?
RecordType.sObjectType
that you can pass in.