You need to sign in to do that
Don't have an account?
rosh
Please help me to write test class for this?? its an urgent
public class Tpm_SchemeCommunicationHandler {
@AuraEnabled(cacheable=true)
public static void sendSMS(String schPdfId) {
//VConnect_SchemePDFHandler.pdfLink(schPdfId);
//VConnect_SchemePDFHandler.sendSMS(schPdfId);
System.debug('schPdfId'+schPdfId);
Id jobId = Database.executeBatch(new VConnect_SchemeSMSBatch(schPdfId)); // optional batch size can be provides as well.
System.debug('jobId'+jobId);
}
}
@AuraEnabled(cacheable=true)
public static void sendSMS(String schPdfId) {
//VConnect_SchemePDFHandler.pdfLink(schPdfId);
//VConnect_SchemePDFHandler.sendSMS(schPdfId);
System.debug('schPdfId'+schPdfId);
Id jobId = Database.executeBatch(new VConnect_SchemeSMSBatch(schPdfId)); // optional batch size can be provides as well.
System.debug('jobId'+jobId);
}
}
All Answers
try with below code.
If this helps, please mark it as best answer.
Thanks!!