Which code snippet will assert that the remote action returned the correct Account?

Consider the Apex class above that defines a RemoteAction used on a Visualforce search page.

Which code snippet will assert that the remote action returned the correct Account?
A . Account a = controller.getAccount(‘TestAccount’);
System.assertEquals( ‘TestAccount’, a.Name );
B . MyRemoter remote = new MyRemoter();
Account a = remote.getAccount(‘TestAccount’);
System.assertEquals( ‘TestAccount’, a.Name );
C . MyRemoter remote = new MyRemoter(‘TestAccount’);
Account a = remote.getAccount();
System.assertEquals( ‘TestAccount’, a.Name );
D . Account a = MyRemoter.getAccount(‘TestAccount’);
System.assertEquals( ‘TestAccount’, a.Name );

Answer: D

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