Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
24 lines (17 sloc) 658 Bytes
@IsTest class FlowServiceTest {
@IsTest static void testServiceOutputsFlowState() {
// arrange
Map<String, Object> event = new Map<String, Object>{
'first_name' => 'bob',
'last_name' => 'loblaw',
'registration_status' => 'pending',
'registration_email' => 'bob@acme.com'
};
// act
List<Map<String,Object>> events = (List<Map<String,Object>>)new FlowService().call('execute', event);
// assert
System.assertEquals(event, events[0], 'wrong output event');
// cover definition
new FlowService.Definition();
}
}
You can’t perform that action at this time.