function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
learn_cloudsflearn_cloudsf 

Unit Testing in SFDC

How do you write a unit test in Apex? What’s the method signature?
sailee handesailee hande
Hi learn_cloudsf,

The apex unit test class and its method should start with @isTest.

https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_testing_unit_tests.htm

If this helps you then let me know.

Regards,
Sailee