I'm not getting coverage for this class, as it would be to test @invocableMethod
global class CallFraudPreventionEventLogs implements Schedulable {
global void execute(SchedulableContext ctx) {
GenerateFraudPreventionEventLogView gfp = new GenerateFraudPreventionEventLogView();
gfp.executeLog();
}
@invocableMethod
public static void executeCallFraudPreventionEventLog() {
GenerateFraudPreventionEventLogView gfp = new GenerateFraudPreventionEventLogView();
gfp.executeLog();
}
}
Test Class
@isTest
public class CallFraudPreventionEventLogsTest {
static TestMethod void TestOne(){
Test.startTest();
new CallFraudPreventionEventLogs().execute(null);
Test.stopTest();
}
public static TestMethod void testTwo() {
Test.startTest();
CallFraudPreventionEventLogs.executeCallFraudPreventionEventLog();
Test.stopTest();
}
}