You need to sign in to do that
Don't have an account?
Andrew Hoban 6
Trouble creating a test class
I have a class that needs a test class.
I was wondering could someone help me create a test class for the class below?
I have been stuggling with this class fora while help would be miuch appreciated.
Thanks
I was wondering could someone help me create a test class for the class below?
I have been stuggling with this class fora while help would be miuch appreciated.
Thanks
global class TalentIntCustomerBatch implements Database.Batchable<sObject>, Database.AllowsCallouts{ global final String query; global TalentIntCustomerBatch(String q){ query=q; } global Database.QueryLocator start(Database.BatchableContext BC){ return Database.getQueryLocator(query); } global void execute(Database.BatchableContext BC, List<sObject> scope){ for(sObject s : scope){ Contact c = (Contact)s; TalentIntegrationUtils.updateCustomer(c.Id, c.LastName); } } global void finish(Database.BatchableContext BC){} }
Try this updated one Best Regards,
Mithun.
All Answers
You can write something like this. (Or) try this
Best Regards,
Mithun.
I am getting the error message:
Error: Compile Error: Constructor not defined: [TalentIntCustomerBatch].<Constructor>() at line 6 column 45
Try this updated one Best Regards,
Mithun.
Best Regards,
Mithun.