| | |
| | | // static testMethod void testMethod1() { |
| | | |
| | | // } |
| | | @isTest |
| | | static void testCallOut1() { |
| | | List < Account > userList = [select id from Account]; |
| | | // System.assertEquals(userList.size(),10); |
| | | Test.startTest(); |
| | | // @isTest |
| | | // static void testCallOut1() { |
| | | // List < Account > userList = [select id from Account]; |
| | | // // System.assertEquals(userList.size(),10); |
| | | // Test.startTest(); |
| | | |
| | | List < Id > idList = new List < Id > (); |
| | | for (Account user: userList) { |
| | | idList.add(user.Id); |
| | | } |
| | | BatchIF_Log__c iflog = new BatchIF_Log__c(); |
| | | iflog.Log__c = 'test start \n'; |
| | | insert iflog; |
| | | // List < Id > idList = new List < Id > (); |
| | | // for (Account user: userList) { |
| | | // idList.add(user.Id); |
| | | // } |
| | | // BatchIF_Log__c iflog = new BatchIF_Log__c(); |
| | | // iflog.Log__c = 'test start \n'; |
| | | // insert iflog; |
| | | |
| | | NFM701Controller.callout(iflog.Id, idList); |
| | | // NFM701Controller.callout(iflog.Id, idList); |
| | | |
| | | Test.stopTest(); |
| | | } |
| | | // Test.stopTest(); |
| | | // } |
| | | @isTest |
| | | static void testCallOut2() { |
| | | List < RecordType > rectCo00 = [select Id from RecordType where IsActive = true and SobjectType = 'Account' |