This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@isTest | |
public class TRB { | |
public class Mock implements HttpCalloutMock { | |
protected Integer code = 200; | |
protected String status = 'OK'; | |
protected String body = '{"response":{"result":"success"}}'; | |
/** | |
* @description Returns an HTTP response for the given request. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class b implements Database.Batchable<SObject>,Database.AllowsCallouts{ | |
public Database.QueryLocator start(Database.BatchableContext bc) { | |
return Database.getQueryLocator('SELECT id FROM user WHERE IsActive=true limit 1'); | |
} | |
public void execute(Database.BatchableContext bc, List<User> users) { | |
new Http().send(new HttpRequest()); | |
} | |
public void finish(Database.BatchableContext bc) {} | |
} |