SFDC API 24.0 test failure issue

Yesterday I was experiencing a weird issue. My SFDC API Test Failed.For a new requirement we did development in our DEV environment…We wrote new test methods and we thought the work is done :)… However, there were Null Pointer Exceptionswhen we ran the test methods. And it was pointing to the custom settings….we doubled checked […]

Batch scheduler class testing

Template for batch & scheduler class test method:@isTest  private class Test_Nameofurclass {     static testmethod void test_Nameofurclass (){         DateTime currTime = DateTime.now();         Integer min = currTime.minute();         Integer hour = currTime.hour();         String sch;     if(min <= 58)       […]