Hello this is the first time i try to write a test class, but i don't understand exactly how i can test if the flow was actually launched. Can someone help me with the test class ? It's only a couple of lines
global class ScheduledContractSend Implements Schedulable {
global void execute(SchedulableContext sc)
{
Map<String, Object> Params = new Map<String, Object>();
Params.put('recordId','006p000000Aal2EAAR');
Flow.Interview.testcontract flow1 = new
Flow.Interview.testcontract(Params);
flow1.start();}}
Test Class :
@isTestprivate class TestScheduledContractSend {
static testMethod void validateScheduledContractSend() {
}}