You need to sign in to do that
Don't have an account?
![Basha sk 16 Basha sk 16](https://dfc-org-production.my.site.com/img/userprofile/default_profile_45_v2.png)
Apex Test calss contains only test mehods or any non-test also contains?
Hi All,
could anyone help....
Apex Test calss contains only test mehods or non-test methods also contains?
Thanks in Advance,
Basha
could anyone help....
Apex Test calss contains only test mehods or non-test methods also contains?
Thanks in Advance,
Basha
Apex test class can contain any type of methods including testmethod. People usually try to create factory methods for there test data setup & use it across all the test methods.
For more details about test class, go to https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_testing_example.htm
Happy Coding!
Regards,
Amit Shingavi