Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Exam Platform Developer II Topic 4 Question 108 Discussion

Actual exam question for Salesforce's Platform Developer II exam
Question #: 108
Topic #: 4
[All Platform Developer II Questions]

A developer created 2 class that implements the Queueable Interface, as follows:

As part of the deployment process, the developer is asked to create a corresponding test class.

Which two actions should the developer take to successfully execute the test class?

Choose 2 answers

Show Suggested Answer Hide Answer
Suggested Answer: B, C

Contribute your Thoughts:

Dudley
9 days ago
I agree with Mireya. That's important for testing Queueable jobs.
upvoted 0 times
...
Audria
9 days ago
I think we need to enclose the job execution in Test.startTest() and Test.stopTest() to ensure the job runs in isolation during the test.
upvoted 0 times
...
Mireya
10 days ago
I think we need to enclose System.enqueueJob within Test.startTest and Test.stopTest.
upvoted 0 times
...

Save Cancel