1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
| @IsTest
| public with sharing class DecrptUpsertAgencyContactTest {
| @IsTest
| static void testScheduledJobExecution() {
| // 创建测试数据
| String json_list = '[{"name":"John Doe","email":"johndoe@example.com"},{"name":"Jane Smith","email":"janesmith@example.com"}]';
| String acList = 'Test Account';
| String sobject_name = 'TestObject';
|
| // 在当前上下文中生成一个定时任务
| Test.startTest();
| DecrptUpsertAgencyContact.assignOnceOneMinuteLater(json_list, acList, sobject_name);
| Test.stopTest();
| }
| }
|
|