+ Start a Discussion

test class for static methods

global class RecurringScheduleJob{
    public static void startJob(){
        String str = 'Job Started at : ' + system.now();
I was writing test class for this class but as it is static , i am not allowed to to call static method.

any suggestions ?
Best Answer chosen by Simrin
David ZhuDavid Zhu
The following code works on my sandbox.

public class RecurringScheduleJob_Test{
    private static testmethod void test()