Below is my original class
@reference
private ResourceResolverFactory resourceResolverFactory;
@reference
private WorkflowService workflowService;
How can I mock the above?
I tried something like below:
@Mock
WorkflowService workflowServiceMock;
then
workflowServiceMock = context.registerInjectActivateService(workflowServiceMock);
But it throws NullPointerException
Solved! Go to Solution.
Views
Replies
Total Likes
Can you please paste some more snippets or logic ? So that it will be more clear to investigate why the workflow session is returning NULLPOINTER_EXCEPTION
Can you please paste some more snippets or logic ? So that it will be more clear to investigate why the workflow session is returning NULLPOINTER_EXCEPTION
Views
Likes
Replies
Views
Likes
Replies