• vijendhar k 23
  • NEWBIE
  • 10 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 1
    Replies
Hello All,
how to get 100% code coverage for bello batch classs, i am getting 50% i have needed 100% coverage
global class Test implements Database.Batchable<sObject>
{
    global Database.Querylocator start(Database.BatchableContext BC) {
        return Database.getQueryLocator('');
    }
    global void execute(Database.batchableContext BC, List<sObject> batch) {}
    global void finish(Database.batchableContext info) {}
}
below test class
 
public static  testMethod void Unit1()
    {
         test.startTest();
        Database.BatchableContext BC;
        Database.BatchableContext info;
        list<sObject> so = new list<sObject>();
        Test ac = new Test();
        //ac.start(BC);
        ac.execute(BC,so);
        ac.Finish(info);  
        test.stoptest();
    }
help me get 100% coverage for below class

Thanks
 
Hello all,
   How to generate random list of ID's from existed list.
example : i have 1000 records in list. in that i have to generate 10 random records. and the 10 random records must be unique
how to achive this functionallity using APEX.
Its bit urgent requirement . your help is appreciable.

Thanks
Vijay
 
Hello All,
how to get 100% code coverage for bello batch classs, i am getting 50% i have needed 100% coverage
global class Test implements Database.Batchable<sObject>
{
    global Database.Querylocator start(Database.BatchableContext BC) {
        return Database.getQueryLocator('');
    }
    global void execute(Database.batchableContext BC, List<sObject> batch) {}
    global void finish(Database.batchableContext info) {}
}
below test class
 
public static  testMethod void Unit1()
    {
         test.startTest();
        Database.BatchableContext BC;
        Database.BatchableContext info;
        list<sObject> so = new list<sObject>();
        Test ac = new Test();
        //ac.start(BC);
        ac.execute(BC,so);
        ac.Finish(info);  
        test.stoptest();
    }
help me get 100% coverage for below class

Thanks