-
Notifications
You must be signed in to change notification settings - Fork 2
Feature/14 context mocking #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: feature/14
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
| } | ||
| } | ||
| } | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small one, feel free to ignore:
Maybe you can add AsyncMock.hasMock which also checking if it's null, so you core here will be very minimal:
private void injectQueueableMockIfNeeded(QueueableJob job) {
if (Test.isRunningTest() && AsyncMock.hasMock(job.mockId)) {
job.queueableCtx = AsyncMock.getQueueableContext(job.mockId);
}
}| @@ -0,0 +1,5 @@ | |||
| <?xml version="1.0" encoding="UTF-8"?> | |||
| <ApexClass xmlns="http://soap.sforce.com/2006/04/metadata"> | |||
| <apiVersion>62.0</apiVersion> | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
API 65 ;>
|
Documentation is missing :< |
|
Thank you @pgajek2 ! Re 1 - Good idea, added. |
No description provided.