Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Database.executeBatch(new MyBatch());
- Database.executeBatch(new MyBatch());
- Database.executeBatch(new MyBatch());
- Integer start = System.Now().millisecond();
- while(System.Now().millisecond()< start+10){
- }
- Database.executeBatch(new MyBatch());
- MyBatch myBatchObject = new MyBatch();
- List<SObject> sObjectList = (List<SObject>)myBatchObject.start(null);
- myBatchObject.execute(null, sObjectList);
- myBatchObject.finish(null);
- myBatchObject = new MyBatch();
- sObjectList = (List<SObject>)myBatchObject.start(null);
- if(sObjectList.size() > 0 ){
- System.assert( false, 'Size of sObjectList should not be greater than 0' );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement