What is the optimal way to fix this?

The test method above calls an @future method that increments the Number_of_Times_Viewed__c value. The assertion is failing because the Number_of_Times_Viewed__c equals 0.

What is the optimal way to fix this?
A . Change the initialization to acct.Number_Of_Times_Viewed__c = 1.
B . Add Test.startTest() before and Test.stopTest() after AuditUtil.incrementViewed.
C . Add Test.startTest() before and Test.stopTest() after insert acct.
D . Change the assertion to System.assertEquals(0, acctAfter.Number_Of_Times_Viewed__c).

Answer: A

Latest CIS-ITSM Dumps Valid Version with 434 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments