+ Start a Discussion
Basha sk 16Basha sk 16 

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
DevADSDevADS
Hi 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